查询数据库爆这个错
Host ‘host.docker.internal’ is not allowed to connect to this MySQL server
因为我数据库ip写的不是localhost,是ip地址
select host, user from user;-- 查询
update user set host = '%' where user = 'root';--修改
flush privileges;-- 输入次命令使修改生效
三连搞定
查询数据库爆这个错
Host ‘host.docker.internal’ is not allowed to connect to this MySQL server
因为我数据库ip写的不是localhost,是ip地址
select host, user from user;-- 查询
update user set host = '%' where user = 'root';--修改
flush privileges;-- 输入次命令使修改生效
三连搞定