摘要:
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mydb'。 原因是因为mysql数据库的user表里,存在用户名为空的账户即匿名账户,导致登录的时候是虽然用的是root,但实际是匿名登录的,通过错误提示里 阅读全文
摘要:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) [root@localhost mysql]# ps -ef | grep mysqlroot 阅读全文