My Oracle Support Banner

How are Lock Wait Timeouts And Deadlocks Handled in MySQL Replication? Error 1205 + SQLState HY000; Error 1213 + SQLState 40001; InnoDB (Doc ID 1365239.1)

Last updated on SEPTEMBER 04, 2023

Applies to:

MySQL Server - Version 4.0 and later
Information in this document applies to any platform.


Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see for a complete list of those changes, and in which minor versions it happened.

Learn how MySQL and InnoDB handles a lock wait timeout on the source and replica in a replication setup.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 On the Source
 On the Replica

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.