problem after upgrading droplet. In mysql, error connecting to the database. mysql not restart.

I installed lamp 1 click. then I upgraded. Why I upgrade: because when1 or 2 visitors enter my website. it give me error establishing database connection. Some advice me to upgrade. The problem I upgraded. Now when I get this error. The mysql stop working. and It not working unless I restart mysql. So what I need is to allow mysql to restart. because: I am setting in the front of the computer waiting this error to restart mysql. Is there any solution for this. 10$ droplet. And when I get error establishing database connection. I must restart mysql manually to get it work. Help. please explain if you want to help me.

Show comments

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.


Please post the output of the following command to a code block:

tail -50 /var/log/mysql/error.log

That’ll give us and idea of what errors MySQL is logging so we can see if there’s something more to what’s going on.