当前位置:Gxlcms > 数据库问题 > ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'(转)

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

时间:2021-07-01 10:21:17 帮助过:21人阅读

 

 

# /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'(转)

标签:ase   family   base   user   nbsp   bar   amp   denied   tag   

人气教程排行