mysql 批量kill进程

来源:互联网 发布:什么叫数据库营销 编辑:程序博客网 时间:2024/05/17 15:02

mysql> select concat('kill ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt';
query ok, 2 rows affected (0.00 sec)

mysql> source /tmp/a.txt;
query ok, 0 rows affected (0.00 sec)

0 0
原创粉丝点击