标签:
mysql> SELECT concat(‘KILL ‘,id,‘;‘) FROM information_schema.processlist WHERE user=‘root‘; +------------------------+ | concat(‘KILL ‘,id,‘;‘) | +------------------------+ | KILL 21107; | +------------------------+ 1 row in set (0.01 sec) mysql> SELECT concat(‘KILL ‘,id,‘;‘) FROM information_schema.processlist WHERE user=‘root‘ INTO OUTFILE ‘/tmp/killid.txt‘; Query OK, 1 row affected (0.01 sec) mysql> source /tmp/killid.txt;
标签:
原文地址:http://www.cnblogs.com/xiaoit/p/4578464.html