是否有可能一次杀死所有mySQL进程,除了一个进程id的之外?
发布于 2013-05-27 23:01:50
您可以使用information_schema表来实现这一点,这有点麻烦,但它可以工作;)
mysql> select concat('KILL ',id,';') from information_schema.processlist
where id != '1234' into outfile '/tmp/foo.txt';
mysql> source /tmp/foo.txt;https://stackoverflow.com/questions/16781521
复制相似问题