Deleted /tmp/mysql.sock and mysql won't work now

I deleted  /tmp/mysql.sock because I thought I was just cleaning up a junk folder.  Well, mySQL won't work now.  I've tried stopping and starting the daemon multiple times, as some suggest, but it doesn't re-create the file.

Any ideas?
hrolsonsAsked:
Who is Participating?
 
hrolsonsConnect With a Mentor Author Commented:
Turns out I had wrong permissions on the newly created /tmp dir:

chmod 777 /tmp

Solved the problem.
0
 
arnoldConnect With a Mentor Commented:
usually, mysql.sock should not be in /tmp it should be in /var/lib/mysql/mysql.sock
your /etc/my.cnf

socket=/var/lib/mysql/mysql.sock

.....
0
All Courses

From novice to tech pro — start learning today.