KILL thread_id
Each connection to mysqld
runs in a separate thread. You can see
which threads are running with the SHOW PROCESSLIST
command, and kill
a thread with the KILL thread_id
command.
If you have the process privilege, you can see and kill all threads.
Otherwise, you can see and kill only your own threads.
You can also use the mysqladmin processlist
and mysqladmin kill
commands to examine and kill threads.