MYSQL database table deadlock situation, investigate which sql deadlock

MYSQL executes SHOW PROCESSLIST;
If you have the SUPER privilege, you can see all the threads, otherwise, you can only see the threads initiated by yourself (this refers to the threads running by the current corresponding MySQL account).

After querying the corresponding process, you can execute kill id to close the corresponding executing thread.


MYSQL executes SHOW OPEN TABLES WHERE IN_USE > 0; to see if there is a table deadlock.

Guess you like

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