show processlist; select concat('kill ',id,';') from information_schema.processlist where user='root' and db='test';
结果复制后去mysql里执行