Report this

What is the reason for this report?

Mysql server stops very frequently

Posted on January 3, 2015

Recently I installed Zpanel on an Unbuntu 12.04.5 x64 droplet. All gose web, but i have a problem. Mysql stops working and I have no idea why. Can someone help me with this problem? I tried to check if mysql is up and make cronjob to restart it but that does not work. I need to restart manually from command line. That is not a problem, but if i’m not at home, how can i restart the mysql?



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.

I found that MySQL gets restarted due to automatic unattended upgrades that seems to be included in the later (I believe) Ubuntu releases.

Can be stopped by adding a blacklist entry to: /etc/apt/apt.conf.d/50unattended-upgrades

A better solution is to check why your MySQL needs so much memory, try to optimize its resources before you invest on more, use this to optimize: Percona tools. Also check if your site/application/whatever is running smoothly or is causing heavy traffic peaks to your db.

If your mysql and application/website are running on the same droplet maybe you should consider something bigger but again check if is something you can solve before you invest on resources.

use “top” or better yet get a free newrelic account and monitor your server resources so you can be sure which process are consuming memory.

This comment has been deleted

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.