1. 程式人生 > >Starting MySQL:mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists

Starting MySQL:mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/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
my.cnf 去拷一份

把/etc/my.conf 重新命名下就好了