Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running a minimal Centos 6.0 build as a vagrant box, with SELINUX=permissive. Right off the bat, performing a "yum install mysql-server" and then "service mysqld start" it fails.

Inside /var/log/mysql.log we have the following--

130815 10:47:32 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130815 10:47:32 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
130815 10:47:32  InnoDB: Initializing buffer pool, size = 8.0M
130815 10:47:32  InnoDB: Completed initialization of buffer pool
130815 10:47:32  InnoDB: Started; log sequence number 0 44233
130815 10:47:32 [ERROR] Can't start server : Bind on unix socket: Operation not permitted
130815 10:47:32 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
130815 10:47:32 [ERROR] Aborting

130815 10:47:32  InnoDB: Starting shutdown...
130815 10:47:38  InnoDB: Shutdown completed; log sequence number 0 44233
130815 10:47:38 [Note] /usr/libexec/mysqld: Shutdown complete

130815 10:47:38 mysqld_safe mysqld from pid file /var/run/mysqld/ ended

I've googled and googled on this and am quite stuck. Can anyone help?

Thank you

share|improve this question
ps -waux |grep -i 'mysqld' - is it running already? – thinice Aug 15 '13 at 16:40
Please post your my.conf – TheFiddlerWins Aug 15 '13 at 16:47
we need to see your my.conf, almost sounds like mysql user can't create files to expected locations, i.e. socket file – AngryWombat Aug 15 '13 at 22:55

This was happening due to a misconfiguration in the installed /etc/my.cnf. It was placing the socket and pid files inside /var/lib/mysql when the pid needed to be in /var/run/mysqld and the socket in /

share|improve this answer

You may check your mysql server status using

chkconfig mysqld

start your mysql server using root user.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.