The KILL QUERY statement is used to terminate running synchronous and asynchronous SQL statements.

Syntax

KILL QUERY "id"

Example

mysql> kill query "q202003081123hxxxxxxxx"