To minimize the risks:
Before we dive into killing a MySQL query, let's understand how MySQL processes work. When a client (e.g., a web application) sends a query to the MySQL server, the server creates a new process to execute the query. This process is called a "thread" or "query process." mysql kill query