KILL QUERY <id>; Example:
Long-running queries can cripple your database performance, consume server resources, and lead to application timeouts. Here’s how to spot and terminate them in MySQL. First, check which queries are running longer than acceptable.
KILL 12345; Generate kill commands for all queries exceeding a threshold: