-
root@localhost > select concat('KILL ',id,';') from information_schema.processlist where user=’sam' into outfile '/tmp/a.txt
-
+------------------------+
-
| concat('KILL
',id,';') |
-
+------------------------+
-
| KILL 31964612; |
-
| KILL 31964609; |
-
| KILL 31964611; |
-
…...
-
| KILL 31966619; |
-
| KILL 31966620; |
-
+------------------------+
-
991 rows in set (0.02
sec)
- root@localhost >
-
root@localhost > source /tmp/a.txt
-
Query OK, 0 rows affected (0.00
sec)
-
Query OK, 0 rows affected (0.00
sec)
- ……
1580



被折叠的 条评论
为什么被折叠?



