找不到 mysql.sock

Cannot find mysql.sock(找不到 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.

  1. 如何找到套接字文件?

  1. 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)