Skip to content

Commit cf5bbed

Browse files
committed
Update genmysql.bat
1 parent b9e0063 commit cf5bbed

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

generate/genmysql.bat

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ call :initialize_database "%VERSION%" "%db_dir%" "%data_dir%"
105105
if !errorlevel! neq 0 exit /b 1
106106

107107
echo ⏳ Waiting for installation to complete...
108-
timeout /t 3 /nobreak
108+
ping -n 3 127.0.0.1
109109

110110
:: Clean up temporary ini files
111111
del "*.ini" /q
@@ -126,7 +126,7 @@ call :configure_timezone "%db_dir%" "%VERSION%"
126126
if !errorlevel! neq 0 exit /b 1
127127

128128
echo ⏳ Waiting for timezone configuration to complete...
129-
timeout /t 3 /nobreak
129+
ping -n 3 127.0.0.1
130130

131131
:: Execute main installation SQL
132132
echo 🔧 Running main installation script...
@@ -234,7 +234,7 @@ echo 🚀 Starting database server for %operation%...
234234
start "MySQL_%version%_%operation%" bin\mysqld.exe --defaults-file="%db_dir%\my.ini" %DB_STARTUP_PARAMS%
235235

236236
echo ⏳ Waiting for server to start...
237-
timeout /t 5 /nobreak
237+
ping -n 5 127.0.0.1
238238

239239
if "%sql_file%" neq "" (
240240
echo 📜 Executing %operation% SQL...
@@ -246,7 +246,7 @@ if "%sql_file%" neq "" (
246246

247247
echo 🛑 Shutting down database server...
248248
bin\mysqladmin.exe%db_pipe% --socket=%version% --host="" -u root shutdown
249-
timeout /t 5 /nobreak
249+
ping -n 5 127.0.0.1
250250

251251
if !sql_result! neq 0 (
252252
echo ❌ ERROR: %operation% execution failed
@@ -264,15 +264,15 @@ echo 🚀 Starting database server for MySQL X Plugin installation...
264264
start "MySQL_%version%_mysqlx" bin\mysqld.exe --defaults-file="%db_dir%\my.ini" %DB_STARTUP_PARAMS%
265265

266266
echo ⏳ Waiting for server to start...
267-
timeout /t 5 /nobreak
267+
ping -n 5 127.0.0.1
268268

269269
echo 🔌 Installing MySQL X Plugin...
270270
bin\mysql.exe --defaults-file="%db_dir%\my.ini"%db_pipe% --socket=%version% --host="" -u root mysql -e "INSTALL PLUGIN mysqlx SONAME 'mysqlx.dll';"
271271
set "plugin_result=!errorlevel!"
272272

273273
echo 🛑 Shutting down database server...
274274
bin\mysqladmin.exe%db_pipe% --socket=%version% --host="" -u root shutdown
275-
timeout /t 3 /nobreak
275+
ping -n 3 127.0.0.1
276276

277277
if !plugin_result! neq 0 (
278278
echo ⚠️ WARNING: MySQL X Plugin installation failed
@@ -294,14 +294,14 @@ call :get_db_startup_params "%version%"
294294

295295
start "MySQL_%version%_timezone" bin\mysqld.exe --defaults-file="%db_dir%\my.ini" %DB_STARTUP_PARAMS%
296296

297-
timeout /t 5 /nobreak
297+
ping -n 5 127.0.0.1
298298

299299
bin\mysql.exe --defaults-file="%db_dir%\my.ini"%db_pipe% --socket=%version% --host="" -u root mysql < "%OSP_ROOT_DIR%\generate\setup\timezone_posix.sql"
300300
set "timezone_result=!errorlevel!"
301301

302302
echo 🛑 Shutting down database server...
303303
bin\mysqladmin.exe%db_pipe% --socket=%version% --host="" -u root shutdown
304-
timeout /t 3 /nobreak
304+
ping -n 3 127.0.0.1
305305

306306
if !timezone_result! neq 0 (
307307
echo ❌ ERROR: Timezone configuration failed

0 commit comments

Comments
 (0)