I’m running Vesta CP on a droplet.
I’ve noticed that every few weeks (perhaps monthly), all MySQL credentials—including root—become invalid and I get connection errors on all my sites. if I reboot the droplet, everything works again for a few weeks.
Any idea what’s going on here?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
As the above answer says, it’s very likely that MySQL is being killed by the OOM killer. That means it is running out of memory. You can confirm this by checking /var/log/syslog after this happens. If that’s the case and it really only is happening every few weeks, you probably don’t need to upgrade to a larger droplet. You can probably get away with just adding some swap to the system. This article should point you in the right direction:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.