-- 查看所有進程
1、SHOW PROCESSLIST;
kill processid;殺死線程;
2、開始,命令查看,是哪台服務器上運行了什么命令
select id, db, user, host, command, time, state, info
from information_schema.processlist
where command != 'Sleep'
order by time desc ;
3、可以看到那個端口運行了命令和命令執行的開始時間,根據端口開始時間長的將它殺死
select * from information_schema.innodb_trx;
kill trx_mysql_thread_id;