]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix issue with MySQL 8 in src/cats/grant_mysql_privileges
authorEric Bollengier <eric@baculasystems.com>
Thu, 13 Jan 2022 10:25:48 +0000 (11:25 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 13 Jan 2022 10:26:38 +0000 (11:26 +0100)
grant all privileges on bacula.* to bacula@localhost;
->
 ERROR 1410 (42000) at line 3: You are not allowed to create a user with GRANT

bacula/src/cats/grant_mysql_privileges.in

index ba291cbe3bbf464c312121240e699712f10bc2f1..78db650e3310c295cd297e3b0d7a849aedf98ef7 100644 (file)
@@ -28,7 +28,6 @@ fi
 if $bindir/mysql $* -u root -f <<END-OF-DATA
 use mysql
 grant all privileges on ${db_name}.* to ${db_user}@"%" ${ssl_options};
-grant all privileges on ${db_name}.* to ${db_user}@localhost ${ssl_options};
 select * from user;
 flush privileges;
 END-OF-DATA