CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  missing mysql.sock

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  TrevorH
      TrevorH
Re: missing mysql.sock
#2
Moderator
Joined: 2009/9/24
From Brighton, UK
Posts: 6322
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.
_________________
Linux/VoIP Systems Administrator
Posted on: 2012/3/27 0:51
Create PDF from Post Print
Top
  •  robkalmeijer
      robkalmeijer
missing mysql.sock
#1
Newbie
Joined: 2012/3/27
From
Posts: 1
After installation of Mysql with centOS 6.2 the mysqld wouldn't start.

my.cnf
datadir= /srv/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql

user exist and paths are valid
SELinux is switched off

Installed are mysql.i686 and mysql-server.i686

The mysql.sock and mysql.host seems to be missing

What might be wrong?

Rob
Posted on: 2012/3/27 0:37
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com