查看Mysql正在执行的线程

1、查看Mysql正在执行的线程

show processlist;

或者

show full processlist;

2、使用like查询状态state为Waiting的所有线程

select * from information_schema.processlist where state like '%Waiting%';

3、如果连接满了,还有很多线程在等待。我们需要kill掉。

kill 具体id;

猜你喜欢

转载自www.cnblogs.com/kdx-2/p/9282971.html