MySQLSessions
Kill a query or connection
KILL QUERY stops the statement and keeps the connection; KILL closes the connection and rolls back its transaction.
Not yet verified. How scripts are tested
1-- Replace 1234 with the processlist id2KILL QUERY 1234; -- stop the running statement only3KILL 1234; -- close the connectionPaste it into your query tool.
More MySQL scripts: Sessions
- Running threadsAll non-sleeping connections, longest running first.