Cannot find mysql.sock(找不到 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?
推荐答案
回答你问题的第一部分:
to answer the first part of your question:
运行
% mysqladmin -p -u <user-name> variables
并检查socket"变量
and check the 'socket' variable
这篇关于找不到 mysql.sock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:找不到 mysql.sock


基础教程推荐
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01