-- 查看进程
SHOW PROCESSLIST;
-- 查看是否锁表
SHOW OPEN TABLES WHERE In_use > 0;
-- 查看正在锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
-- 查看等待锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
-- 查看进程
SHOW PROCESSLIST;
-- 查看是否锁表
SHOW OPEN TABLES WHERE In_use > 0;
-- 查看正在锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
-- 查看等待锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
本文标题:MySQL 锁进程查询
本文链接:https://www.haomeiwen.com/subject/mauxbltx.html
网友评论