Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
What Happens to Your Transactions When ERROR 1205 Occurred
What Happens to Your Transactions When ERROR 1205 Occurred? - MySQL FAQs - Transaction Management: Commit or Rollback
✍: 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.
2007-05-11, 5623👍, 0💬
Popular Posts:
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
How could Java classes direct program messages to the system console, but error messages, say to a f...
If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ? If a ta...
How Oracle Handles Dead Locks? - Oracle DBA FAQ - Understanding SQL Transaction Management Oracle se...
How To Build WHERE Criteria with Web Form Search Fields? - MySQL FAQs - Managing Tables and Running ...