Error code

MySQL 1205

MYSQL1205
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

Lock wait timeout exceeded — a lock could not be acquired in time.

How to fix it

  1. Identify and commit or roll back the blocking transaction using SHOW ENGINE INNODB STATUS.
  2. Retry the operation after a short delay with exponential back-off.
  3. Shorten the transaction holding the lock or access rows in a consistent order across transactions.

Not affiliated with MySQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.