mysql登录不进去
来源:4-11 实现方式一
慕九州3016327
2020-09-08
老师你好,我昨天登录还好好的,今天一登陆就报这个错误,很神奇!怎么解决呢这种情况?感谢!!!
[root@hadoop000 ~]# mysql -uroot -proot
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
[root@hadoop000 ~]#
写回答
2回答
-
Michael_PK
2020-09-08
Access denied for user ‘root’@‘localhost’ (using password: YES)
1)要么密码不对
2)要么你的ip发生了变化,默认mysql没有这ip的访问权限,你需要找下如何针对mysql进行赋权操作
012020-09-09 -
慕九州3016327
提问者
2020-09-08
老师,我这样写mysql -uroot -h 127.0.0.1 -proot就可以了,为什么呢,我昨天那样写还可以,今天就不行了。
012020-09-09
相似问题