use ***db;
show ENGINE INNODB STATUS;
其他方法:
1、查詢是否鎖表
show OPEN TABLES where In_use > 0;
2薛夜、查詢進(jìn)程
show processlist
(查詢到相對應(yīng)的進(jìn)程===然后 kill id )
3凉蜂、查看正在鎖的事務(wù)
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
4潮模、查看等待鎖的事務(wù)
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;