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.


@Abdo Please provide some mysql error log for more details.

Submit an 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.


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.