Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
Error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
Error reason: an SQL execution is finished, but it is not committed. If the following SQL wants to execute, it is locked, and the timeout ends
Solution:
1. View the process information of the database
show full processlist;
2. View the transaction table
SELECT * FROM information_schema.INNODB_TRX
Note: abnormal transaction found (usually records whose start time is a long time from now)
/*Note the TRX in the result_ mysql_ thread_ The value of the ID part*/
Find the corresponding ID, and then kill the value of ID
Similar Posts:
- MySQL Lock Error: Lock wait timeout exceeded [How to Solve]
- MySQL reports an error lock wait timeout exceeded; Try restarting transaction problem solving method
- MySQL Error: Waiting for table metadata lock [How to Solve]
- ERROR 2006 (HY000): MySQL server has gone away No
- Lock wait timeout exceeded; try restarting transaction-Mysql [How to Solve]
- [Solved] MYSQL Error 1040 (HY000): too many connections
- How to Solve Mysql Error 1206: The total number of locks exceeds the lock table size
- MySQL Error: [Err] 1071 – Specified key was too long; max key length is 767 bytes
- ERROR 1044 (42000): Access denied for user ‘root’@’localhost’ to database ‘in…
- The ‘INFORMATION_SCHEMA.GLOBAL_STATUS’ feature is disabled; see the documentation for …