Docker进入Mysql报错ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

在Docker进入Mysql时,报了ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES),账号密码是正确的。

通过不断搜寻解决方法后,最后输入

mysql -uroot -p123456 -h127.0.0.1 -P 3306 -D mysql

 成功进入。

发布了93 篇原创文章 · 获赞 93 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_41937388/article/details/104850144