]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/grant_mysql_privileges.cmd
Fixed problems with encryption when combined with compression or sparse files. Unfor...
[bacula/bacula] / bacula / src / win32 / cats / grant_mysql_privileges.cmd
1 @echo off\r
2 rem\r
3 rem Script to grant privileges to the bacula database\r
4 rem\r
5 \r
6 "%SQL_BINDIR%\mysql" -u root -f %* < grant_mysql_privileges.sql\r
7 set RESULT=%ERRORLEVEL%\r
8 if %RESULT% GTR 0 goto :ERROR\r
9 echo "Privileges for bacula granted."\r
10 exit /b 0\r
11 \r
12 :ERROR\r
13 echo "Error creating privileges."\r
14 exit /b %RESULT%\r