Question

Lost connection to database

  • Posted on December 21, 2014
  • tokar93Asked by tokar93

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.