@@ -105,7 +105,7 @@ call :initialize_database "%VERSION%" "%db_dir%" "%data_dir%"
105105if !errorlevel! neq 0 exit /b 1
106106
107107echo ⏳ 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
111111del " *.ini" /q
@@ -126,7 +126,7 @@ call :configure_timezone "%db_dir%" "%VERSION%"
126126if !errorlevel! neq 0 exit /b 1
127127
128128echo ⏳ 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
132132echo 🔧 Running main installation script...
@@ -234,7 +234,7 @@ echo 🚀 Starting database server for %operation%...
234234start " MySQL_%version% _%operation% " bin\mysqld.exe --defaults-file=" %db_dir% \my.ini" %DB_STARTUP_PARAMS%
235235
236236echo ⏳ Waiting for server to start...
237- timeout /t 5 /nobreak
237+ ping -n 5 127.0.0.1
238238
239239if " %sql_file% " neq " " (
240240 echo 📜 Executing %operation% SQL...
@@ -246,7 +246,7 @@ if "%sql_file%" neq "" (
246246
247247echo 🛑 Shutting down database server...
248248bin\mysqladmin.exe%db_pipe% --socket=%version% --host=" " -u root shutdown
249- timeout /t 5 /nobreak
249+ ping -n 5 127.0.0.1
250250
251251if !sql_result! neq 0 (
252252 echo ❌ ERROR: %operation% execution failed
@@ -264,15 +264,15 @@ echo 🚀 Starting database server for MySQL X Plugin installation...
264264start " MySQL_%version% _mysqlx" bin\mysqld.exe --defaults-file=" %db_dir% \my.ini" %DB_STARTUP_PARAMS%
265265
266266echo ⏳ Waiting for server to start...
267- timeout /t 5 /nobreak
267+ ping -n 5 127.0.0.1
268268
269269echo 🔌 Installing MySQL X Plugin...
270270bin\mysql.exe --defaults-file=" %db_dir% \my.ini" %db_pipe% --socket=%version% --host=" " -u root mysql -e " INSTALL PLUGIN mysqlx SONAME 'mysqlx.dll';"
271271set " plugin_result = !errorlevel! "
272272
273273echo 🛑 Shutting down database server...
274274bin\mysqladmin.exe%db_pipe% --socket=%version% --host=" " -u root shutdown
275- timeout /t 3 /nobreak
275+ ping -n 3 127.0.0.1
276276
277277if !plugin_result! neq 0 (
278278 echo ⚠️ WARNING: MySQL X Plugin installation failed
@@ -294,14 +294,14 @@ call :get_db_startup_params "%version%"
294294
295295start " 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
299299bin\mysql.exe --defaults-file=" %db_dir% \my.ini" %db_pipe% --socket=%version% --host=" " -u root mysql < " %OSP_ROOT_DIR% \generate\setup\timezone_posix.sql"
300300set " timezone_result = !errorlevel! "
301301
302302echo 🛑 Shutting down database server...
303303bin\mysqladmin.exe%db_pipe% --socket=%version% --host=" " -u root shutdown
304- timeout /t 3 /nobreak
304+ ping -n 3 127.0.0.1
305305
306306if !timezone_result! neq 0 (
307307 echo ❌ ERROR: Timezone configuration failed
0 commit comments