mysql 查询正在执行的sql

 

https://www.cnblogs.com/sxmny/p/10441346.html

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

或者

 
-- use information_schema;
-- show processlist;

 

show processlist

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

posted @ 2020-10-22 19:40  久_久  阅读(456)  评论(0编辑  收藏  举报