show innodbstatus\G;
show variables like '%timeout%';
show status like '%lock%';
show status like 'Table%';
Table_locks_immediate refers to the number of immediate access to table-level locking
Table_locks_waited refers to the number of table-level lock can not be obtained immediately but to wait
The current state of the lock table
show OPEN TABLES where In_use > 0;
Lookup table is locked process
show processlist;
View things are locks:
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
Waiting for the lock to view things:
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
All currently running transactions:
SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX;