美文网首页
mysql查询进行中的sql语句

mysql查询进行中的sql语句

作者: 三个程序员之一 | 来源:发表于2023-09-03 11:20 被阅读0次

确定是否锁表
select * from information_schema.innodb_locks;

查询正在锁的事务
select * from information_schema.innodb_locks;

查询等待锁的事务
select * from information_schema.innodb_lock_waits;

查询未提交的事务
select * from information_schema.innodb_trx

查询所有的线程
select * from information_schema.PROCESSLIST;

相关文章

网友评论

      本文标题:mysql查询进行中的sql语句

      本文链接:https://www.haomeiwen.com/subject/pmmfvdtx.html