Getting “Lock wait timeout exceeded; try restarting transaction” even though I’m not using a transaction

HOW TO FORCE UNLOCK for locked tables in MySQL: Breaking locks like this may cause atomicity in the database to not be enforced on the sql statements that caused the lock. This is hackish, and the proper solution is to fix your application that caused the locks. However, when dollars are on the line, a … Read more