ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql

Posted ComeComeGo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql相关的知识,希望对你有一定的参考价值。

解决ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘mysql

原创 2014年05月11日 11:42:25
 

 

# /etc/init.d/mysql stop 

# mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 
# mysql -u root mysql 

mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’; 

delete from user where USER=‘‘;

mysql> FLUSH PRIVILEGES; 
mysql> quit;





以上是关于ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql的主要内容,如果未能解决你的问题,请参考以下文章

mysql ERROR 1044 (42000): Access denied for user ''@'localhost' to database

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ambari

[故障解决]Mysql爆出ERROR 1044 (42000)的错误怎么办?

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql

解决 ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql&

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'(示