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