Report this

What is the reason for this report?

CentOS MySQL server won't start

Posted on January 11, 2015

Hey,

I have installed MySQL on my CentOS 7 server, but it won’t start. When i try to start it with the command “sudo service mysqld start” i get the message “Job for mysqld.service failed. See ‘systemctl status mysqld.service’ and ‘journalctl -xn’ for details.” after about 5 minutes.

I have searched Google all day, and just can’t find a solution…

Log: 150111 10:06:40 mysqld_safe A mysqld process already exists 150111 10:20:35 mysqld_safe A mysqld process already exists 150111 10:30:35 mysqld_safe A mysqld process already exists 150111 10:40:35 mysqld_safe A mysqld process already exists

Please help…



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!

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.

Reinstalling MySQL might help. First uninstall, then delete the /var/lib/mysql and /etc/my.cnf or /etc/my.cnf.rpmsave, then Restart, then Install.

Had the same problem. Use command : #sudo tail -f /var/log/messages|grep -i mysql to check if SELinux policy is causing the issue. If so, first check if SELinux policy is enables using command #sestatus. If it shows enabled, than disable it. To disable, i)# vi /etc/sysconfig/selinux ii)change ‘SELINUX=enforcing’ to ‘SELINUX=disabled’ iii)restart linux iv)check with ‘sestatus’ and it should show “disabled”

Uninstall and reinstall mysql. It should be working.

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.