As again shared on my FaceBook wall …
WordPress MySQL on Ubuntu Keeps Crashing?
uh o … high priority call coming in
from another beautiful woman
with the following problem:“Error establishing database connection”
Not again … what could it be this time?!
Hacked? Course not! It’s an ultra badassrhyker super secure server. So what it could it be … hmzzz.
Bit of messing with settings … it’s been ages ago I done server administration … a ‘real’ nerd (I’m a poser ) can see that immediately from the history log but … problem solved AND cured the cause. At next crash? We just have to upgrade the VPS to compensate for future growth. Phewww.
And it was solved within half a hour! Let’s get down to the nuts and bolts:
Troubleshooting Digital Ocean WordPress Droplet
Here’s the syntax from the console I used to fix the issue on our 1GB RAM droplet:
At command #58 these contents have to be appended to fstab file:
/swapfile none swap sw 0 0
WP/MySQL problem status: SOLVED!
Update: with htop we monitored the results over a longer period of time, and it indeed showed it was lack of RAM memory, as the swap was used and the server kept on running.
Bibliography / appendix
Like to further background research? And/or articles we used to compile this wisdom:
- https://www.digitalocean.com/community/questions/mysql-on-ubuntu-keeps-crashing
- https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-12-04
- My Dutch / NL WordPress Translation contributions: October 2022 - October 9, 2022
- My Dutch / NL WordPress Translation contributions: August 2022 - August 23, 2022
- [NL] Ultra Light digital nomad Europe travel with Ryanair / Wizz Air - August 20, 2022
- My Dutch / NL WordPress Translation contributions: July 2022 - July 27, 2022
- My Dutch / NL WordPress Translation contributions: April 2022 - April 2, 2022
- My Dutch / NL WordPress Translation contributions: March 2022 - March 10, 2022
- What is the best global travel community for 2022 ? - February 20, 2022
- My Dutch / NL WordPress Translation contributions: February 2022 - February 3, 2022
- My Dutch / NL WordPress Translation contributions: January 2022 - January 4, 2022
- My Dutch / NL WordPress Translation contributions: October 2021 - October 7, 2021