]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/update_mysql_tables.cmd
Update the Windows README files.
[bacula/bacula] / bacula / src / win32 / cats / update_mysql_tables.cmd
1 @echo off\r
2 rem\r
3 rem Script to update MySQL tables from version 1.38 to 1.39\r
4 rem\r
5 echo.\r
6 echo This script will update a Bacula MySQL database from version 9 to 10\r
7 echo Depending on the size of your database,\r
8 echo this script may take several minutes to run.\r
9 echo.\r
10 \r
11 "%SQL_BINDIR%\mysql" %* -f -u bacula --password=bacula bacula < update_mysql_tables.sql\r
12 set RESULT=%ERRORLEVEL%\r
13 if %RESULT% GTR 0 goto :ERROR\r
14 echo "Update of Bacula MySQL tables succeeded."\r
15 exit /b 0\r
16 \r
17 :ERROR\r
18 echo Update of Bacula MySQL tables failed.\r
19 exit /b %RESULT%\r