Serving The Planet

WordPress MySQL on Ubuntu Keeps Crashing? [Solved!]

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:

About Earnie Rhyker

tech pioneer | intellectual BadAss | ethical lifehacker | WordPress Developer & Polyglot | information activist | blogger | added value services provider | multimedia enthusiast | senior linux server administrator | geek | bitcoin investor | laptop entrepreneur | open source contributor | hackintosh fanatic | charity donator | accredited top MLM networker & internet marketer 2014-2016 @ BFH | digital expat

View All Posts

Communities I have been 'hanging out' regularly over the past two decades. 

Note: links go to my profile on those respective sites. Connect with me if you like.

 

, ,

Earn With Earnie

This site hasn't been updated since 2022. Visit my new blog -- EarnWithEarnie.com -- instead:

X
error: Content is DCMA protected !!