Super User is a question and answer site for computer enthusiasts and power users. 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

I am missing /tmp/mysql.sock. It has signature srwxrwxrwx. Is it possible to create this file by hand?

share|improve this question

migrated from Feb 26 '13 at 23:41

This question came from our site for professional and enthusiast programmers.

Presumably you're missing the socket because mysqld either isn't running or isn't attempting to read from that socket. Creating it by hand isn't going to fix that. – Kevin Ballard Feb 26 '13 at 23:05

This is more of a MySQL question. The mysql.sock file should be created when you start mysql using mysql.server start. Restarting your server should create the file properly. If it doesn't then there's a chance that the server isn't set up to listen over a socket.

share|improve this answer

A while ago a friend of mine told me of an issue with a missing socket file. He was using a custom configuration file /etc/my.conf that was somehow troubling mysql. When he removed the my.conf file and restarted the mysql server the socket file appeared again.

After a little search with this keywords I found a discussion on a blog post, where some people reported almost exactly the same problems, maybe you can get some more ideas there. Some people however had the file, but in a different location.

However, if mysql does not create the socket file at all, it will not help you creating it by hand.

share|improve this answer

You must log in to answer this question.