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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.