Revert "Create the database by default..."
[freeradius.git] / raddb / mods-config / sql / main / mysql / setup.sql
1 # -*- text -*-
2 ##
3 ## admin.sql -- MySQL commands for creating the RADIUS user.
4 ##
5 ##      WARNING: You should change 'localhost' and 'radpass'
6 ##               to something else.  Also update raddb/sql.conf
7 ##               with the new RADIUS password.
8 ##
9 ##      $Id$
10
11 #
12 #  Create default administrator for RADIUS
13 #
14 CREATE USER 'radius'@'localhost';
15 SET PASSWORD FOR 'radius'@'localhost' = PASSWORD('radpass');
16
17 # The server can read any table in SQL
18 GRANT SELECT ON radius.* TO 'radius'@'localhost';
19
20 # The server can write to the accounting and post-auth logging table.
21 #
22 #  i.e.
23 GRANT ALL on radius.radacct TO 'radius'@'localhost';
24 GRANT ALL on radius.radpostauth TO 'radius'@'localhost';