3 # shell script to grant privileges to the bacula database
5 db_user=${db_user:-@db_user@}
7 db_name=${db_name:-@db_name@}
9 if $bindir/mysql $* -u root -f <<END-OF-DATA
11 grant all privileges on ${db_name}.* to ${db_user}@localhost;
12 grant all privileges on ${db_name}.* to ${db_user}@"%";
17 echo "Privileges for ${db_user} granted on ${db_name}."
20 echo "Error creating privileges."