mirror of
https://github.com/MariaDB/server.git
synced 2025-11-05 01:43:31 +03:00
mysql-test/include/wait_until_connected_again.inc: On Windows, mysqladmin does not wait on pid file when it has shut down mysqld. Thus, in maria_empty_logs.inc, wait_until_connected_again.inc can run while mysqld is shutting down (has not finished) and so get "shutdown in progress" instead of "can't connect". mysql-test/t/maria-recovery-big.test: it is a big test storage/maria/unittest/ma_test_recovery.pl: We want to see the result of 'cmp', like in the shell version
23 lines
438 B
PHP
23 lines
438 B
PHP
#
|
|
# Include this script to wait until the connection to the
|
|
# server has been restored or timeout occurs.
|
|
# You should have done --enable_reconnect first
|
|
--disable_result_log
|
|
--disable_query_log
|
|
let $counter= 5000;
|
|
let $mysql_errno= 1;
|
|
while ($mysql_errno)
|
|
{
|
|
--error 0,2002,2003,2006,1053
|
|
show status;
|
|
|
|
dec $counter;
|
|
if (!$counter)
|
|
{
|
|
--die Server failed to restart
|
|
}
|
|
--sleep 0.1
|
|
}
|
|
--enable_query_log
|
|
--enable_result_log
|