Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Feb 26 '13 at 23:41

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

4  
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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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