paip.mysql 批量kill 连接.

paip.mysql 批量kill 连接.




作者Attilax  艾龙,  EMAIL:1466519819@qq.com 
来源:attilax的专栏
地址:http://blog.csdn.net/attilax


说是直接地information_schema.processlist删除方便...提示授权错误...授权孪还是不行,放弃..
1.“grant all on *.* to root@'%' identified by 'yourpassword';”——这个还可以顺带设置密码。
2.“flush privileges; ”——刷新一下,让权限生效。




2.查询,拼接kill sql...执行...
select concat('kill ',id,';') t  from information_schema.processlist  order by t


copy到查询..执行..就ok兰..




参考.
mysql批量kill locked进度方法_狼漫骑士_百度空间.htm
原文地址:https://www.cnblogs.com/attilax/p/5964129.html