Abdo
By:
Abdo

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

April 28, 2017 136 views
WordPress Ubuntu 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
1 Answer

@Abdo

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.

Have another answer? Share your knowledge.