소스 검색

BETA: Same that [8471] now for '''database_installer.sh''' also fixing a issues in '''database_installer.bat''', thanks UnAfraid.

MELERIX 13 년 전
부모
커밋
206c3dabe2
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      L2J_DataPack_BETA/dist/tools/database_installer.bat
  2. 3 3
      L2J_DataPack_BETA/dist/tools/database_installer.sh

+ 3 - 3
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%

+ 3 - 3
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