--source include/have_innodb.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings SET autocommit=0; CREATE TABLE t1 (a INT) ENGINE=InnoDB; --source percona_innodb_kill_idle_trx_show.inc SET GLOBAL innodb_kill_idle_transaction=1; --source percona_innodb_kill_idle_trx_show.inc BEGIN; INSERT INTO t1 VALUES (1),(2),(3); COMMIT; SELECT * FROM t1; BEGIN; INSERT INTO t1 VALUES (4),(5),(6); sleep 3; --enable_reconnect --error 2006 --error CR_SERVER_GONE_ERROR SELECT * FROM t1; SELECT * FROM t1; DROP TABLE t1; SET GLOBAL innodb_kill_idle_transaction=0; --source percona_innodb_kill_idle_trx_show.inc