One of my slave servers stopped twice in the last couple of days.
The error in the error log file was:
061214 21:17:41 [ERROR] Slave: Error 'Lock wait timeout exceeded; try restarting transaction' on query. Default database: 'fl_db1'. Query: 'UPDATE user SET total_photos = total_photos + 1 WHERE user_name = '666damy666'', Error_code: 1205
061214 21:17:41 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'db2-bin.003509' position 342646547
I tried to learn more about the error code using perror and
got
-bash-3.00$ perror 1205
Illegal error code: 1205
Information about the error is available on MySQL server error messages page of the
manual.
…