diff --git a/L2J_DataPack_BETA/dist/tools/database_installer.bat b/L2J_DataPack_BETA/dist/tools/database_installer.bat index 7be3f96fa9688d089d25f9e50afb2469c90fd9f4..6c4744054184adfc7d5b7e0b6d2971d8eea17d86 100644 --- a/L2J_DataPack_BETA/dist/tools/database_installer.bat +++ b/L2J_DataPack_BETA/dist/tools/database_installer.bat @@ -404,7 +404,7 @@ echo Upgrading structure of Login Server tables. echo. echo @echo off> temp.bat if exist ls_errors.txt del ls_errors.txt -for %%i in (..\sql\login\updates\*.sql) do echo "%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -f %lsdb% ^< %%i 2^>^> ls_errors.txt >> temp.bat +for %%i in (..\sql\login\updates\*.sql) do echo "%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -D %lsdb% --force ^< %%i 2^>^> ls_errors.txt >> temp.bat call temp.bat> nul del temp.bat move ls_errors.txt %workdir% @@ -567,7 +567,7 @@ echo Upgrading structure of Community Server tables. echo. echo @echo off> temp.bat if exist cs_errors.txt del cs_errors.txt -for %%i in (..\sql\community\updates\*.sql) do echo "%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -f %cbdb% ^< %%i 2^>^> cs_errors.txt >> temp.bat +for %%i in (..\sql\community\updates\*.sql) do echo "%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -D %cbdb% --force ^< %%i 2^>^> cs_errors.txt >> temp.bat call temp.bat> nul del temp.bat move cs_errors.txt %workdir% @@ -724,7 +724,7 @@ echo Upgrading structure of Game Server tables. echo. echo @echo off> temp.bat if exist gs_errors.txt del gs_errors.txt -for %%i in (..\sql\game\updates\*.sql) do echo "%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -f %gsdb% ^< %%i 2^>^> gs_errors.txt >> temp.bat +for %%i in (..\sql\game\updates\*.sql) do echo "%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% --force ^< %%i 2^>^> gs_errors.txt >> temp.bat call temp.bat> nul del temp.bat move gs_errors.txt %workdir% diff --git a/L2J_DataPack_BETA/dist/tools/database_installer.sh b/L2J_DataPack_BETA/dist/tools/database_installer.sh index 99e93129255899da19c6c8a2583818b9ad39c5ca..a0631d38b17399317d091c60e6e3148530d68d62 100644 --- a/L2J_DataPack_BETA/dist/tools/database_installer.sh +++ b/L2J_DataPack_BETA/dist/tools/database_installer.sh @@ -447,11 +447,11 @@ while : echo "There we go, it may take some time..." echo "Installing Gameserver Updates" for file in $(ls ../sql/game/updates/*.sql);do - $MYG < $file 2>> gserror.log + $MYG --force < $file 2>> gserror.log done echo "Installing Loginserver Updates" for file in $(ls ../sql/login/updates/*.sql);do - $MYL < $file 2>> lserror.log + $MYL --force < $file 2>> lserror.log done break elif [ "$NOB" == "n" -o "$NOB" == "N" ]; then @@ -473,7 +473,7 @@ while : echo "updates parser results. Last run: "`date` >cb_database_installer.log for file in $(ls ../sql/community/updates/*sql);do echo $file|cut -d/ -f4 >> cb_database_installer.log - $MYC < $file 2>> cb_database_installer.log + $MYC --force < $file 2>> cb_database_installer.log if [ $? -eq 0 ];then echo "no errors">> cb_database_installer.log fi