docker容器中出现Access denied for user ‘root‘@‘xxxx‘ (using password: YES)解决
分析:主机(IP)XXX-XXX没有访问远程数据库的权限解决办法docker输入命令docker_for_mysql 进入mysql客户端docker exec -it mymysql bash进入mysql 中输入命令grant all privileges on *.* to root@"主机公网ip地址" identified by "密码";这相当于是给IP-xxx.xxx.xxx.xxx
·
已为社区贡献1条内容
所有评论(0)