mysql 查看慢sql 然后kill

select * from information_schema.processlist where db='zcwdb' and state='Sending data';

 

select concat('kill ', id,';') from information_schema.processlist where db='zcwdb' and state='Sending data' and time > 500;

猜你喜欢

转载自san-yun.iteye.com/blog/1902099