KILL 12345; Generate kill commands for all queries exceeding a threshold:
KILL QUERY <id>; Example:
How to Identify and Kill Long-Running Queries in MySQL mysql kill long running queries
SET GLOBAL max_execution_time = 30000; -- milliseconds (30 seconds) Or per session/query: KILL 12345; Generate kill commands for all queries