Collections:
Error: Lock Wait Timeout Exceeded in MySQL
What Happens to Your Transactions When ERROR 1205 Occurred in MySQL?
✍: FYIcenter.com
If your transaction receives the "Lock wait timeout exceeded" - ERROR 1205, MySQL server automatically terminates your transaction and rolls back your data changes of the entire transaction. This is why the error messages tells you to "try restarting transaction".
Note that MySQL server will not touch the other transaction that holds the lock. That means the lock will stay as is. If you repeat your transaction right away, it will be blocked again, and may be timed out again, if the other transaction has not been committed or rolled back yet.
⇒ What Is a Dead Lock in MySQL
⇐ Transaction Waiting for a Data Lock in MySQL
2017-04-28, 4010🔥, 0💬
Popular Posts:
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
What Is an Oracle Tablespace in Oracle? An Oracle tablespace is a big unit of logical storage in an ...
Where to find answers to frequently asked questions on Managing Security, Login and User in SQL Serv...
How To Change the Name of a Database User in SQL Server? If you want to change the name of an existi...
How to execute statements in loops in SQL Server Transact-SQL? How to use WHILE ... loops? You can u...