当前位置:Gxlcms > 数据库问题 > Window中使用Navicat连接linux的MySQL失败解决

Window中使用Navicat连接linux的MySQL失败解决

时间:2021-07-01 10:21:17 帮助过:22人阅读

在保证windows中cmd能ping通虚拟机地址时:

1、先登录进入到linux中的mysql

2、运行以下两个命令:

  1)赋予远程登录的root用户所有权限

        grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘密码‘ with grant option;

    

  2)刷新系统权限关系表

        flush privileges;

Window中使用Navicat连接linux的MySQL失败解决

标签:虚拟   使用   ant   关系   ping   linux中   cat   远程登录   option   

人气教程排行