2009-01-23 18:19:09 +01:00
|
|
|
SET @@global.wait_timeout= 2;
|
|
|
|
disconnect default;
|
|
|
|
connection wait_con;
|
|
|
|
connection default;
|
|
|
|
--disable_reconnect;
|
|
|
|
SELECT 1;
|
2005-10-11 18:12:12 +02:00
|
|
|
1
|
|
|
|
1
|
2009-01-23 18:19:09 +01:00
|
|
|
connection wait_con;
|
|
|
|
connection default;
|
|
|
|
SELECT 2;
|
2007-01-10 15:55:53 +01:00
|
|
|
Got one of the listed errors
|
2009-01-23 18:19:09 +01:00
|
|
|
--enable_reconnect;
|
|
|
|
SELECT 3;
|
2005-10-11 18:12:12 +02:00
|
|
|
3
|
|
|
|
3
|
2009-01-23 18:19:09 +01:00
|
|
|
disconnection default;
|
|
|
|
connection wait_con;
|
|
|
|
connection con1;
|
|
|
|
--disable_reconnect;
|
|
|
|
SELECT 1;
|
2006-02-16 12:02:38 +01:00
|
|
|
1
|
|
|
|
1
|
2009-01-23 18:19:09 +01:00
|
|
|
connection wait_con;
|
|
|
|
connection con1;
|
|
|
|
SELECT 2;
|
2007-01-10 15:55:53 +01:00
|
|
|
Got one of the listed errors
|
2009-01-23 18:19:09 +01:00
|
|
|
--enable_reconnect;
|
|
|
|
SELECT 3;
|
2006-02-16 12:02:38 +01:00
|
|
|
3
|
|
|
|
3
|
2009-01-23 18:19:09 +01:00
|
|
|
SET @@global.wait_timeout= <start_value>;
|
|
|
|
disconnection con1;
|