May 31, 2012
tom

Missing mysql.sock file

Question

I updated MySQL with yum.

And it doesn’t start now.

I try find / | grep mysql.sock.

I can’t see any sock file.

How can I create it? Or any possible solution?

Thanks.

Asked by Kronokrator

Answer

It sounds like mysqld isn’t running at all. Be sure to remove the invalid/old options from /etc/my.cnf and then check in the log that mysqld starts correctly.

Answered by Ask Bjørn Hansen

Related posts:

  1. MySQL deleting the sock file and complained about the permission for it
  2. Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
  3. Webserver: chrooted PHP gives mysql.sock error when attempting to reach mysql
  4. Mysql Sock Problem
  5. No such file or directory – /var/run/mysqld/mysqld.sock

Leave a comment