]> 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>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
bacula/src/cats/grant_mysql_privileges.in

index 0c0a8add6b1da218c9706a899c4bc3b20c2ef4ef..2f21301328af82269625b9d1a1aeb4cfb1f63876 100644 (file)
@@ -29,6 +29,7 @@ if $bindir/mysql $* -u root -f <<END-OF-DATA
 use mysql
 grant all privileges on ${db_name}.* to ${db_user}@localhost ${ssl_options};
 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