MySQL错误整理:
错误一:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2、解决方法(摘自:http://wenda.haosou.com/q/1364099334067193?src=150)
1、先查看 /etc/rc.d/init.d/mysqld status 看看mysql是否已经启动. 另外看看是不是权限问题. 2、确定你的mysql.sock是不是在那个位置, mysql -u 你的mysql用户名 -p -S /var/lib/mysql/mysql.sock 3、试试:service mysqld start
错误二:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
解决方法参考:
MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)的真正原因 - 潇湘隐者 - 博客园 http://www.cnblogs.com/kerrycode/p/4368312.html