show processlist;//查询mysql所有连接线程

 

SELECT CONCAT('KILL ',id,';') FROM information_schema.`PROCESSLIST` WHERE DB = 'topsale';//杀死他有连接线程

posted on 2019-04-15 19:17  Yusco  阅读(102)  评论(0编辑  收藏  举报