2009-01-23 18:19:09 +01:00
|
|
|
SET @@global.wait_timeout= 2;
|
|
|
|
disconnect default;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect wait_con,localhost,root,,test,,;
|
2009-01-23 18:19:09 +01:00
|
|
|
connection wait_con;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect default,localhost,root,,test,,;
|
2009-01-23 18:19:09 +01:00
|
|
|
connection default;
|
|
|
|
--disable_reconnect;
|
|
|
|
SELECT 1;
|
2005-10-11 09:12:12 -07:00
|
|
|
1
|
|
|
|
1
|
2009-01-23 18:19:09 +01:00
|
|
|
connection wait_con;
|
|
|
|
connection default;
|
|
|
|
SELECT 2;
|
2007-01-10 16:55:53 +02:00
|
|
|
Got one of the listed errors
|
2009-01-23 18:19:09 +01:00
|
|
|
--enable_reconnect;
|
|
|
|
SELECT 3;
|
2005-10-11 09:12:12 -07:00
|
|
|
3
|
|
|
|
3
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect default;
|
2009-01-23 18:19:09 +01:00
|
|
|
connection wait_con;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con1,127.0.0.1,root,,test,$MASTER_MYPORT,;
|
2009-01-23 18:19:09 +01:00
|
|
|
--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;
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect wait_con;
|
2009-01-23 18:19:09 +01:00
|
|
|
connection con1;
|
|
|
|
SELECT 2;
|
2007-01-10 16:55:53 +02: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>;
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect con1;
|
|
|
|
connect default,localhost,root,,test,,;
|
2017-08-30 14:37:16 +00:00
|
|
|
set global log_warnings=2;
|
|
|
|
connect foo,localhost,root;
|
|
|
|
set @@wait_timeout=1;
|
|
|
|
connection default;
|
|
|
|
FOUND 1 /Aborted.*Got timeout reading communication packets/ in mysqld.1.err
|
|
|
|
set global log_warnings=@@log_warnings;
|