1
by brian
clean slate |
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 |
while ($mysql_errno) |
|
8 |
{
|
|
9 |
--error 0,2002,2006 |
|
10 |
show status; |
|
11 |
||
12 |
dec $counter; |
|
13 |
if (!$counter) |
|
14 |
{
|
|
15 |
--die Server failed to restart |
|
16 |
}
|
|
17 |
--sleep 0.1 |
|
18 |
}
|
|
19 |
--enable_query_log |
|
20 |
--enable_result_log |