Mysql doesn't start, no logs either

Mysql doesn’t start, no logs either. systemctl status mysql.service - returns

ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)

systemd[1]: mysql.service: Control process exited, code=exited status=1

Is there any way to repair or reset mysql from this state?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello there,

Have you recently made any changes to the MySQL configuration or any general changes on the droplet? If you examine the server’s resource usage is there anything weird you can spot on?

Additionally, you can check /var/log/syslog for any references to the MySQL service that can help to resolve the issue.


Hi @gja,

After you try and start it, once it fails type in:

journalctl -xe

The error should be seen there.

Additionally, are you sure there are no errors in your error log? If everything is configured properly, the errors should be there.