“mysqld dead but subsys locked” – cause and fix?
-
I maintain a WordPress website for a small company. The website gets low traffic, and I only make small content updates maybe once a year. I let the WordPress version auto-update, and I have a couple of security-minded plugins running (Sucuri Security, Wordfence Security), to warn me for normal/abnormal administation tasks.
Over the past few weeks, I’ve been getting emails warning me that a user has been locked out due to failed login attempts. (This is a feature I’ve enabled through the Wordfence plugin.) I also have 2FA login enabled via the plugin. So, I haven’t really been paying much attention to this – a user is trying and failing to log in… so what?
Today I just decided to visit the site myself and I immediately got an error message: “Error establishing a database connection”. I logged into the (Amazon Linux) server and ran “sudo service mysqld status” and the result was: “mysqld dead but subsys locked”. I logged into AWS and just stopped and started the server, and the site is back running and accessible again. It’s hard to tell from the Apache logs when the site was last running fine, but it looks like it could have been ~3 days ago. Nobody notified me that the site was offline – as I said, it gets low traffic volumes.
What I’m wondering is, what could have brought about this MySQL problem? Could those failed login attempts have “overloaded” the server? Wordfence reports 1,838 brute force login attempts in the last month.
- The topic ‘“mysqld dead but subsys locked” – cause and fix?’ is closed to new replies.