KILL [CONNECTION | QUERY] thread_id
KILL CONNECTION
is the same as KILL
with no modifier: It terminates the connection associated with the giventhread_id
.
KILL QUERY
terminates the statement that the connection is currently executing, but leaves the connection itself intact.
hum same problemthe ID is the connection id, not the query id...exampleif i execute: (1 = one connection, 2 = other connection)1)mysql_connect... (create a connection id)2)mysql_connect... (create a connection id)1)show processlist (i will see 1 and 2 connection id)1) select * from big table2)show processlist -> let's tell it return connection: 1)id = 10, 2)id = 111) select * from another big table1) select * from another big table1) select * from another big table1) select * from another big table1) select * from another big table1) select * from another big table2)show processlist -> it return connection: 1)id = 10, 2)id = 11see? there's no change at id...maybe expose the query id solve this problem.. (in this case it should return ~8 to (1), and ~2 to (2)) i'm using mariadb 10.0.3 hereany idea?