Host ‘host.docker.internal‘ is not allowed to connect to this MySQL server
·
https://www.cnblogs.com/yu-si/p/17919493.html
参考以上文章解决问题
报错描述:
空指针,来自服务器的消息:"Host ’ Host .docker.internal’ 不允许连接到 MySQL 服务器"
登陆mysql
键入命令mysql -uroot -p,或者点击MySQL 9.5 Command Line Client,打开后提示你输入密码,输入密码回车即可进入到mysql中
选择数据库
use mysql
查询root用户的host
select user,host from user;
修改root的host为%
update user set host='%' where user='root';
刷新修改
然后 flush privileges; 使之生效。
更多推荐


所有评论(0)