Created
May 6, 2013 08:01
-
-
Save anhkind/5523900 to your computer and use it in GitHub Desktop.
Fix: (ActiveRecord::StatementInvalid) "Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE some_table.....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo vi /etc/my.cnf | |
| Add/ Uncomment this: innodb_lock_wait_timeout=120 | |
| launchctl unload /usr/local/Cellar/mysql/5.5.28/homebrew.mxcl.mysql.plist | |
| launchctl load /usr/local/Cellar/mysql/5.5.28/homebrew.mxcl.mysql.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment