// 查看进程
SHOW PROCESSLIST;
// 查看是否锁表
SHOW OPEN TABLES WHERE In_use > 0;
// 查看正在锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
// 查看等待锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
05-11 19:32