471,052 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,052 software developers and data experts.

What happened to this file '/tmp/mysql.sock'

JW
Hi all,

I was fine running mysql, and for some reason, after the most recent
reboot of my machine, I get the following error and I try the following
subsequent commands to try to figure things out:

[root@lm4267 /]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

[root@lm4267 /]# mysqld_safe
Starting mysqld daemon with databases from /usr/local/mysql/data
040520 18:47:39 mysqld ended

[root@lm4267 /]# ps -ef|grep sql
root 2829 2620 0 18:47 pts/3 00:00:00 grep sql

[root@lm4267 /]# mysqladmin variables
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

[root@lm4267 /]# find /|grep "mysql.sock"
[root@lm4267 /]#

---> What happened to my file "mysql.sock".
---> How do I recreate it?
---> thanks!
Jul 20 '05 #1
0 1192

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by philippe Tressard | last post: by
2 posts views Thread by Sean Berry | last post: by
3 posts views Thread by Kirk Soodhalter | last post: by
2 posts views Thread by Ben | last post: by
3 posts views Thread by pc | last post: by
JohanK
1 post views Thread by JohanK | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.