mysql check deadlock

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; 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326234416&siteId=291194637