MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
wait_until_connected_again.inc
1
#
2
# Include this script to wait until the connection to the
3
# server has been restored or timeout occurs
4
--disable_result_log
5
--disable_query_log
6
let $counter= 500;
7
let $mysql_errno= 9999;
8
while
($mysql_errno)
9
{
10
# Strangely enough, the server might return "Too many connections"
11
# while being shutdown, thus 1040 is an "allowed" error
12
# See BUG#36228
13
--error 0,1040,1053,2002,2003,2006,2013
14
show status;
15
16
dec $counter;
17
if
(!$counter)
18
{
19
--die Server failed
to
restart
20
}
21
--sleep 0.1
22
}
23
--enable_query_log
24
--enable_result_log
mysql-test
include
wait_until_connected_again.inc
Generated on Sat Nov 9 2013 01:25:01 for MySQL 5.6.14 Source Code Document by
1.8.1.2