Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where would I set the maximum time a query will wait for a lock in MySQL 5.0.68 before timing out?

share|improve this question
up vote 5 down vote accepted

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)

share|improve this answer

By default, it is 50 seconds

Just set innodb_lock_wait_timeout as needed.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.