Mysql设置远程链接无法访问

固定了本地一台服务器的Ip地址之后,远程权限打开
grant all privileges on *.* to 'root' @'%' identified by '密码';
flush privileges;

防火墙3306畅通的情况下仍然无法链接到远程

修改mysql的配置文件
bind-address    = 192.168.1.* (本机的IP地址)

猜你喜欢

转载自chinacheng.iteye.com/blog/1935821