Mysql 服务器似乎工作正常并且正在运行,我也可以通过 ssh 命令连接到数据库,这里是 my.cnf 文件指令:
[mysqld]
#port=3306
datadir=/home/mysql
socket=/home/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
socket=/home/mysql/mysql.sock
[client]
#port=3306
socket=/home/mysql/mysql.sock
我正在尝试安装一个脚本,它说:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)