Re: missing mysql.sock

Posted by TrevorH on 2012/3/27 0:51:25
Quote:

After installation of Mysql with centOS 6.2 the mysqld wouldn't start.


You tried `service mysqld start` as root? You looked in wherever you've pointed the log files to for clues - does it say anything there? The default is /var/log/mysqld.log but I suspect that you may have changed that.

Quote:

datadir= /srv/mysql


Just think, if you changed that back to the default of /var/lib/mysql then you'd be able to turn selinux back on! If it's a separate partition then just mount it on /var/lib/mysql instead of where it is now. If you cannot revert to the default then investigate `man semanage` and `man restorecon` to find out how you can set the selinux context on non-standard paths and apply it.

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=56&topic_id=36606&post_id=158673