1045 Access denied for user 'root'@'localhost' (using password:YES)
解决方法:
1.[mysqld] 底下添加语句:skip-grant-tables
2.重启mysql: net restart mysql
本文介绍了一种常见的MySQL错误“Access denied for user 'root'@'localhost'”的解决方案。通过在mysqld配置中添加skip-grant-tables语句并重启mysql服务,可以绕过权限验证,从而解决root用户登录失败的问题。
1045 Access denied for user 'root'@'localhost' (using password:YES)
解决方法:
1.[mysqld] 底下添加语句:skip-grant-tables
2.重启mysql: net restart mysql
1万+

被折叠的 条评论
为什么被折叠?