环境
在windows10系统上安装了一个windows10专业版的虚拟机,上面安装了mysql5.7。然后在主机上远程连接MySQL失败。
解决问题
- 关闭主机和虚拟机防火墙、退出杀毒软件
未解决 - MySQL中root用户修改主机host为%并授权允许远程访问
update user set host="%" where user=“root”;
grant all privileges on . to ‘root’@’%’ identified by ‘root’ with grant option;
flush privileges;
未解决 - 连接的时候增加数据库
成功-苦笑😂😂😂😂😂😂😂😂😂😂😂😂😂😂