MYSQL_ROOT_PASSWORD 已设置,但“访问被拒绝用户 'root'@'localhost' 使用密码:YES";在码头集装箱
本文介绍了MYSQL_ROOT_PASSWORD 已设置,但“访问被拒绝用户 'root'@'localhost'(使用密码:YES)";在码头集装箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 docker-compose 文件和一个 Dockerfile.MySQL 已正确安装.我已经设置了MYSQL_ROOT_PASSWORD.但是当尝试访问 mysql db 时,出现错误 – 访问被拒绝.我已经阅读了本网站的其他主题,但没有得到太多帮助.:(
I have a docker-compose file and a Dockerfile. MySQL is installed properly. I have set MYSQL_ROOT_PASSWORD. But when trying to access mysql db, getting the error – Access denied. I have read the other threads of this site, but couldn’t get that much help.