My server is a Ubuntu-Lamp 14.04 droplet named economas-droplet-ubuntu. I noticed that sometimes when I tried to access the website it will have a databased errror related message “Error establishing a database connection” I was fixing this issue by power cycling the droplet, but since yesterday this hasn’t worked at all.
Please let me know if you can guide me to find a solution to this problem since I have an important meeting tomorrow.
Thank you,
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.
Login to the server and check the following files for errors /var/log/mysql/error.log
, /var/log/mysql.log
and /var/log/mysql.err
to find the root cause of the issue.
You can try running the following command to restart the mysql server manually
sudo service mysql restart
, please note that might be a temporary fix as you need to find what causes the mysql server to stop.
This is not a digital ocean problem. I would contact a person with knowledge of systems administration.
This comment has been deleted