Can‘t connect to local MySQL server through socket ‘/home/mysql/mysql-5.6.33/mysql.sock
登录MySQL的时候出现这个问题
原因是在 tmp目录下没有mysql.sock这个文件
我们需要创建一个软连接到该目录下
[root@test /]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/home/mysql/mysql-5.6.33/mysql.sock' (2)
解决办法:
ln -s /home/mysql/mysql-5.6.33/mysql.sock /tmp/
希望对你有所帮助
Can‘t connect to local MySQL server through socket ‘/home/mysql/mysql-5.6.33/mysql.sock相关推荐
- ERROR 2002 (HY000): Cant connect to local MySQL server through socket的解决方法
连接MySQL提示ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 ...
- 连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
mysql,mysqldump,Mysqladmin,php连接mysql服务常会提示下面错误: ERROR 2002 (HY000): Can't connect to local MySQL se ...
- #2002-The server is not responding (or the local MySQL server's socket is not correctly configur
#2002-The server is not responding (or the local MySQL server's socket is not correctly configured) ...
- Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2)
安装了mysql, 使用命令mysql -u root -p 弹出Can 't connect to local MySQL server through socket '/tmp/mysql.soc ...
- Can't connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘ (2)解决思路
首先说明一下mysql.sock文件的作用: 连接mysql有两种方式,第一种是TCP/IP,第二种就是直接使用unix domain socket,它比TCP/IP块. mysql.sock是在my ...
- mysql socket错误_解决Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’错误...
晚上清理mysql日志,强制重启了下mysql,然后mysql就登陆不上了... 以下方法来自网络,可以使用,已试. 刚安装完mysql,进行运行测试,报Can't connect to local ...
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' ...
- Can’t connect to local MySQL server through socket的解决方法
Can't connect to local MySQL server through socket的解决方法 参考文章: (1)Can't connect to local MySQL server ...
- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
关于ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的解决方法: ...
最新文章
- android11有哪种手机,支持安卓11系统的机型有哪些
- Go在Ubuntu 14.04 64位上的安装过程
- 学界丨北大清华合力打造通用人工智能实验班,朱松纯教授领衔
- Map-Reduce和分片集合
- python开发工程师面试题-2019超实用Python开发工程师面试题分享
- aov建立Java模拟,数据结构之---C语言实现拓扑排序AOV图
- Web应用开发技术(3)-html
- Spark on Yarn 模式编写workcount实例
- B. Light It Up
- Asp.Net 数据分页
- django model 数据类型
- 星露谷服务器一直没有空闲位置,星露谷物语小镇地图全npc住址位置 经验告诉你该这样...
- SaltStack Salt 开源管理框架修复2个严重漏洞,多款开源产品等受影响
- 文本分类器,可自由加载BERT、Bert-wwm、Roberta、ALBert以及ERNIE1.0
- neo4j入门(一)概述
- 对网上盛传的两千万泄漏数据的简单分析
- python3调用arcpy地理加权回归_地理加权回归( GWR)
- 微信小程序ui框架 graceUI 使用半年评测
- dataframe获取字符串中的字数
- 3、jQuery插件之datetimepicker时间插件