1. Query whether the table is locked
show OPEN TABLES where In_use > 0;
2. Query the process
show processlist
to query the corresponding process === and then kill id
to add:
view the transaction that is being locked
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
view the waiting for the lock Transaction
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
MySQL query table deadlock and table steps to end deadlock
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326169401&siteId=291194637
Ranking