MySQL Error 1205: Lock wait timeout exceeded

Transaction waited longer than `innodb_lock_wait_timeout` (default 50s) for a row lock.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Identifier: MySQL Error 1205: Lock wait timeout exceeded Platform: MySQL / MariaDB

Interactive Diagnostic Checklist

Safe Diagnostic Command:
SELECT * FROM performance_schema.data_lock_waits;

Technical Explanation

Transaction waited longer than `innodb_lock_wait_timeout` (default 50s) for a row lock. Verified technical resolution: Add missing indexes to narrow row locks and commit transactions promptly.

Worked Examples

  • Diagnostic check: SELECT * FROM performance_schema.data_lock_waits;

Limitations & Assumptions

  • Confirm exact software version and execution layer before applying configuration changes in production.

Source References & Verification

Resource ID: err-mysql-1205-lock-wait-timeout · Independently verified: 2026-11-25

Related Resources