Where would I set the maximum time a query will wait for a lock in MySQL 5.0.68 before timing out?
Asked
Active
Viewed 8.5k times
3 Answers
15
By default, it is 50 seconds
Just set innodb_lock_wait_timeout as needed.
RolandoMySQLDBA
- 185,223
- 33
- 326
- 536
9
Other timeout settings that are general (not just for locks, since innodb_lock_wait_timeout only applies to InnoDB row locks) would be wait_timeout and interactive_timeout (both default to 28,800)
Derek Downey
- 23,568
- 11
- 79
- 104
4
If you hit the 50-sec InnoDB timeout, you have a poorly designed application!
That timeout exists to catch naughty things that cannot be caught any other way.
Rick James
- 80,479
- 5
- 52
- 119