// 查看进程
SHOW PROCESSLIST;
// 查看是否锁表
SHOW OPEN TABLES WHERE In_use > 0;
// 查看正在锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
// 查看等待锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/5057.html