Report this

What is the reason for this report?

Lost connection to database

Posted on December 21, 2014

Hi

I end up whit a connection lost to my database a couple off times a day and the only thing for me to fix this is to reboot the server.

I even have trouble then to login to my ISPConfig control panel.

What is wrong? Way is this happen?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The most common reason for MySQL to become unavailable or crash is a lack of available memory. If you are running a LAMP stack on a small droplet this can occur since droplets do not have a swap partition to use when the physical memory has been exhausted. There are a few things you can do to resolve this:

1.) Upgrade to a larger droplet plan. 2.) Set up swap space on your droplet. 3.) Optimize your MySQL and Apache processes.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.