2001-03-25 01:02:26 +02:00
|
|
|
connect (con1, localhost, root,,);
|
|
|
|
connect (con2, localhost, root,,);
|
2001-03-13 23:07:12 -07:00
|
|
|
|
|
|
|
#remember id of con1
|
|
|
|
connection con1;
|
2001-03-15 03:55:48 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (kill_id int);
|
|
|
|
insert into t1 values(connection_id());
|
2001-03-13 23:07:12 -07:00
|
|
|
|
|
|
|
#kill con1
|
|
|
|
connection con2;
|
2001-03-15 03:55:48 +02:00
|
|
|
select ((@id := kill_id) - kill_id) from t1;
|
2001-03-13 23:07:12 -07:00
|
|
|
kill @id;
|
|
|
|
|
2001-03-15 03:55:48 +02:00
|
|
|
# Wait for thread to do.
|
|
|
|
--sleep 5
|
|
|
|
# verify that con1 is doning a reconnect
|
2001-03-13 23:07:12 -07:00
|
|
|
connection con1;
|
2001-03-15 03:55:48 +02:00
|
|
|
ping
|
|
|
|
ping
|
|
|
|
select @id != connection_id();
|
2001-03-13 23:07:12 -07:00
|
|
|
|
|
|
|
#make sure the server is still alive
|
|
|
|
connection con2;
|
|
|
|
select 4;
|
2001-03-15 03:55:48 +02:00
|
|
|
drop table t1;
|