]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
MySQL: Use correct syntax for creating the radius user
authorTerry Burton <tez@terryburton.co.uk>
Fri, 8 May 2020 12:30:38 +0000 (13:30 +0100)
committerAlan DeKok <aland@freeradius.org>
Fri, 8 May 2020 18:11:55 +0000 (14:11 -0400)
raddb/mods-config/sql/main/mysql/setup.sql

index 978dc820a90201cebeca4ae6591b00607ec3fe88..e42c0d69204e4d984e939a4278339ae0cee7412a 100755 (executable)
@@ -11,8 +11,7 @@
 #
 #  Create default administrator for RADIUS
 #
-CREATE USER 'radius'@'localhost';
-SET PASSWORD FOR 'radius'@'localhost' = PASSWORD('radpass');
+CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radpass';
 
 # The server can read any table in SQL
 GRANT SELECT ON radius.* TO 'radius'@'localhost';