MySQL Forums
Forum List  »  InnoDB

Re: "Lock wait timeout exceeded" time out on insert.
Posted by: Rick James
Date: December 16, 2011 05:09PM

Do you ever COMMIT? I see none in the snippets of code. The locks for those SELECTs will be held until a COMMIT, ROLLBACK, or a timeout. With autocommit=0, you must eventually use COMMIT.

If it is not too big, please provide the entire general log, starting 51 seconds before the problem. (assuming you have innodb_lock_wait_timeout=50)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: "Lock wait timeout exceeded" time out on insert.
2150
December 16, 2011 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.