## Include this script to wait until the connection to the# server has been restored or timeout occurs--disable_result_log--disable_query_loglet$counter=100;while($mysql_errno){--error0,2002,2006showstatus;dec$counter;if(!$counter){--dieServerfailedtorestart}--sleep0.1}--enable_query_log--enable_result_log