mysql 查询正在执行的sql

时间:2020-10-22 23:12:27   收藏:0   阅读:46

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  能看到所有库以及用户的执行情况

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!