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';"--这个还可以顺带设
如果大批量的操作能够通过一系列的select语句产生,那么理论上就能对这些结果批量处理.但是mysql并没用提供eval这样的对结果集进行分析操作的功能.所以只能现将select结果保存到临时文件中,然后再执行临时文件中的指令.具体过程如下: mysql> SELECT concat('KILL ',id,';') FROM information_schema.processlist WHERE user='root';+------------------------+| concat('K