mysql 查询正在执行的sql

select * from information_schema.`PROCESSLIST` where info is not null;

或者

 
-- use information_schema;
-- show processlist;
show processlist

  show processlist  能看到所有库以及用户的执行情况

猜你喜欢

转载自www.cnblogs.com/sxmny/p/10441346.html