Due to more traffic on my website the MYSQL gone down and after restarting it and restarting server and droplet none of these solutions didn’t work,so anyone can help will be appreciated.

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.

×
3 answers

when you try restarting mysql service what error did it show ? I would recommend to check mysql error log which can provide accurate information on the issue.

There could be may reasons why mysql service could fail and this discussion might provide some insights and checklist for you to troubleshoot : https://www.digitalocean.com/community/questions/mysql-can-t-be-started-start-job-failed-to-start-error

Incase if you need any assistance, feel free to contact DigitalOcean support by creating a support ticket with all relevant information with log details. One of our support engineers will be able to assist you.

The MySQL Notifier GUI can also be used to start/stop/restart the MySQL server. … If mysqld doesn’t start, check the error log to see whether the server wrote any messages there to indicate the cause of the problem. By default, the error log is located in the C:\Program Files\MySQL\MySQL Server 5.1\data directory.

Hello, @khudadad

Could you please let me know if you’ve managed to get this sorted or you’re still experiencing the issue?

As already mentioned you can examine the MySQL error_log and see what is causing the issue for you. You can see the last 150 entries logged in the error_log using tail

tail -n 150 /var/log/mysql/error.log

You can also check the journal log:

journalctl  -xe

More information about this can be found here: https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs

You can check this tutorial for additional information:

https://www.digitalocean.com/community/tutorial_series/how-to-troubleshoot-issues-in-mysql

Regards,
Alex

by Justin Ellingwood
Some of the most compelling advantages of systemd are those involved with process and system logging. Using other systems, logs are usually dispersed throughout the system, handled by different daemons and tools, and can be fairly difficult to interpret when they span...
Submit an Answer