This happened to me 2 weeks ago on a site I run pro bono, and I
forgot to blog about it. A comment in the “MySQL Automated
Failover with Scripts” BOF reminded me about it, so here goes.
Basically, the web application stopped being able to talk to the
database. I run the staging/test server AND the database, and the
production site is run by someone else. So I checked out the
logs, and indeed, there are many of the following:
050814 18:16:42 Aborted connection 241474 to db: ‘database’ user:
‘userhere’ host: `localhost’ (Got an error reading communication
packets)
050814 23:58:43 Aborted connection 241487 to db: ‘database’ user:
‘userhere’ host: `localhost’ (Got timeout reading communication
packets)
(and of course going up through the time it crashed, and even
today). I believe –log-warnings is ON by default, because it’s
not in my my.cnf and show variables shows that it’s on. But if …
[Read more]