centos6.3 mysql ERROR 2002 (HY000)

ERROR 2002 (HY000) : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

这是没启动mysql的守护进程,执行service mysqld start 即可。

mysql使用方法:

1、使用root登录:

mysql -u root -p

2、配置文件/etc/my.cnf



你可能感兴趣的:(centos6.3 mysql ERROR 2002 (HY000))