]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/grant_mysql_privileges.cmd
Add all the new files from the Windows branch.
[bacula/bacula] / bacula / src / win32 / cats / grant_mysql_privileges.cmd
1 rem
2 rem Script to grant privileges to the bacula database
3 rem
4
5 %SQL_BINDIR%\mysql $* -u root -f < grant_mysql_privileges.sql
6 set RESULT=%ERRORLEVEL%
7 if %RESULT% GTR 0 goto :ERROR
8 echo "Privileges for bacula granted."
9 exit /b 0
10
11 :ERROR
12 echo "Error creating privileges."
13 exit /b %RESULT%