From 2d17454c15c4baeafd22e8ae5bf4f87e4524cb97 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Thu, 19 Nov 2009 00:24:30 +0000 Subject: [PATCH] Fix: Comand sleep is not a windows command. --- build/exe/doliwamp/mysqlinitpassword.bat.install | 8 +++++--- build/exe/doliwamp/startdoliwamp.bat | 4 +++- build/exe/doliwamp/stopdoliwamp.bat | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/build/exe/doliwamp/mysqlinitpassword.bat.install b/build/exe/doliwamp/mysqlinitpassword.bat.install index 534da066ebf..6b7c2fe899b 100644 --- a/build/exe/doliwamp/mysqlinitpassword.bat.install +++ b/build/exe/doliwamp/mysqlinitpassword.bat.install @@ -10,12 +10,14 @@ REM GRANT ALL ON *.* TO login@localhost IDENTIFIED BY "newpassword" REM echo ---- Show content of script mysqlinitpassword before running it >> doliwamp.log 2>>&1 REM type .\mysqlinitpassword.bat >> doliwamp.log 2>>&1 -sleep 3 -REM sleep 20 +REM Wait the mysql init by first startup is ok +REM sleep is not a windows command +REM sleep 5 +ping 1.1.1.1 -n 1 -w 5000 > nul echo ---- Execute mysqlinitpassword.bat to init mysql password >> doliwamp.log 2>>&1 echo For a first installation, if an error is shown here, rerun the script manually. >> doliwamp.log 2>>&1 -echo For an update, you will get an "Acces denied" error, ignore this error. >> doliwamp.log 2>>&1 +echo For an update, you will get an "Access denied" error, ignore this error. >> doliwamp.log 2>>&1 .\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqladmin -v -w6 -P WAMPMYSQLPORT -u root password WAMPMYSQLNEWPASSWORD >> doliwamp.log 2>>&1 echo ---- End script >> doliwamp.log 2>>&1 diff --git a/build/exe/doliwamp/startdoliwamp.bat b/build/exe/doliwamp/startdoliwamp.bat index a51891a6d01..d6842c56010 100644 --- a/build/exe/doliwamp/startdoliwamp.bat +++ b/build/exe/doliwamp/startdoliwamp.bat @@ -13,4 +13,6 @@ NET START doliwampmysqld >> doliwamp.log 2>>&1 echo Please wait... echo ---- End script >> doliwamp.log 2>>&1 -sleep 1 +REM sleep is not a Windows commande +REM sleep 1 +ping 1.1.1.1 -n 1 -w 1000 > nul \ No newline at end of file diff --git a/build/exe/doliwamp/stopdoliwamp.bat b/build/exe/doliwamp/stopdoliwamp.bat index dd4c29a6a39..e4d2ce07c29 100644 --- a/build/exe/doliwamp/stopdoliwamp.bat +++ b/build/exe/doliwamp/stopdoliwamp.bat @@ -13,4 +13,6 @@ NET STOP doliwampmysqld echo Please wait... echo ---- End script >> doliwamp.log 2>>&1 -sleep 1 \ No newline at end of file +REM sleep is not a Windows command +REM sleep 1 +ping 1.1.1.1 -n 1 -w 1000 > nul \ No newline at end of file -- GitLab