当前位置:Gxlcms > 数据库问题 > ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

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

解决:

(1)修改my.cnf中[mysqld]中增加skip-grant-tables

(2)重启mysql数据库:service mysqld restart

(3)无密码登录mysql中

(4)>use mysql;

(5)>update mysql.user set password=password(‘123456‘) where user= ‘root‘;

(6)> flush privileges;

(7)将my.cnf中增加的语句注释

(8)重启mysql数据库:service mysqld restart

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

标签:无密码   密码   error   mysqld   解决   登录   access   for   ice   

人气教程排行