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

Posted April 28, 2017 1.4k views
WordPressUbuntu 16.04

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.

1 comment

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.

Submit an Answer
1 answer


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.