2
# Include this script to wait until the connection to the
3
# server has been restored or timeout occurs
4
# Unlike wait_until_connected_again the variable counter must be set outside as var.
5
# set WAIT_COUNT before executinmg this include file.
8
let $counter= $WAIT_COUNT;
9
let $mysql_errno= 9999;
12
# Strangely enough, the server might return "Too many connections"
13
# while being shutdown, thus 1040 is an "allowed" error
15
--error 0,1040,1053,2002,2003,2006,2013
21
--echo Waited $WAIT_COUNT * 0.5 sec.
22
--die Server failed to restart