http://blog.sina.com.cn/s/blog_66519bd80102v3ct.html
1. Query whether to lock the table
show OPEN TABLES where In_use > 0;
2. Query process
show processlist
queries the corresponding process === then kill id
Replenish:
View locked transactions
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
View transactions waiting for locks
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;