tercelpower

-- 查看所有进程
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;

分类:

技术点:

相关文章: