解决问题Can’t connect to local MySQL server through socket
2017-06-29 10:54
330 查看
不幸遇到MySQL出现ERROR 2002 (HY000): Can’t connect to local mysql server through socket ‘/tmp/mysql.sock’错误导致无法启动。
解决方法: 修改/etc/my.conf:
[php] view plain copy
[client]
socket=/var/lib/mysql/mysql.sock
[mysqld]
socket=/var/lib/mysql/mysql.sock
这样mysqld 及mysql就都可以搞定启动起来。
主要是 增加
[client]
socket=/var/lib/mysql/mysql.sock
解决方法: 修改/etc/my.conf:
[php] view plain copy
[client]
socket=/var/lib/mysql/mysql.sock
[mysqld]
socket=/var/lib/mysql/mysql.sock
这样mysqld 及mysql就都可以搞定启动起来。
主要是 增加
[client]
socket=/var/lib/mysql/mysql.sock
相关文章推荐
- Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)的解决问题
- Can't connect to 问题“local MySQL server through socket '/var/lib/mysql/mysql.sock'”解决
- 解决mysql启动问题: Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- MySQL 2002问题解决方案 - Can't connect to local MySQL server through socket...
- [转]Can't connect to local MySQL server through socket 问题解决
- Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)问题解决
- Can't connect to local MySQL server through socket 问题解决
- Can't connect to local MySQL server through socket 问题解决
- 解决Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)的问题
- 解决问题Can’t connect to local MySQL server through socket
- Can't connect to local MySQL server through socket 问题解决
- Can't connect to local MySQL server through socket 问题解决
- centos7下Mariadb出现Can't connect to local MySQL server through socket 问题解决
- Can not connect to local MySQL server through socket 解决办法
- 解决mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- Can’t connect to local MySQL server through socket 解决办法
- 问题:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Can’t connect to local MySQL server through socket 解决办法
- Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'的解决
- mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' 解决方法