DE EN IT

~/errors / Database

ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction

Two or more transactions each hold a lock that the other one needs, so none can continue. InnoDB detects the cycle, rolls back one transaction (the victim) and returns 1213 to it. The other transaction goes on. The error is normal under load and is meant to be retried.

New articles by e-mail

One e-mail per new article. No tracking, unsubscribe any time. As a thank-you after confirming: my “Server operations & patching” checklist (PDF).