进入了mysql后输入:mysql -u root输入:use mysql输入:update user set password=old_password('scf') where user='root' and host='localhost' ;输入:FLUSH PRIVILEGES;
如果觉得《ERROR 1045 (28000): Access denied for user'root'@'localhost'(using password:YES)》对你有帮助,请点赞、收藏,并留下你的观点哦!