找不到mysql.sock [英] Cannot find mysql.sock
问题描述
我只需要重新安装mysql,我就无法启动它.它找不到套接字(mysql.sock).问题是我不能.在我的Mac OS X 10.4终端中,键入:locate mysql.sock
,然后返回/private/tmp/mysql.sock
.套接字文件存在于该位置是有道理的,但实际上并不存在.
I just had to re-install mysql and I am having a problem starting it up. It cannot find the socket (mysql.sock). The problem is that neither can I. In my Mac OS X 10.4 terminal, I type: locate mysql.sock
, and I get back /private/tmp/mysql.sock
. It makes sense that the socket file exist in that location, but it actually does not.
-
如何找到套接字文件?
How can I find the socket file?
如果locate返回错误的位置,则它必须具有某种内存,并且可能具有索引.如何刷新该索引?
If locate is returning a false location, it must have some sort of memory and probably indexes. How can I refresh that index?
推荐答案
回答问题的第一部分:
运行
% mysqladmin -p -u <user-name> variables
并检查"socket"变量
and check the 'socket' variable
这篇关于找不到mysql.sock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!