]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix MySQL default connection in the grant_mysql_privileges script
authorEric Bollengier <eric@baculasystems.com>
Mon, 28 Jun 2021 08:53:32 +0000 (10:53 +0200)
committerEric Bollengier <eric@baculasystems.com>
Mon, 28 Jun 2021 08:56:21 +0000 (10:56 +0200)
bacula/src/cats/grant_mysql_privileges.in

index 78db650e3310c295cd297e3b0d7a849aedf98ef7..ba291cbe3bbf464c312121240e699712f10bc2f1 100644 (file)
@@ -28,6 +28,7 @@ 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