Fault description:
启动mysql 报错:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
Solution:
Add the following to /etc/my.conf:
[client]
socket = /tmp/mysql.sock
[mysqld]
socket = /tmp/mysql.sock
Fault description:
启动mysql 报错:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
Solution:
Add the following to /etc/my.conf:
[client]
socket = /tmp/mysql.sock
[mysqld]
socket = /tmp/mysql.sock