grant all privileges on *.* to 'root' @'%' identified by '密码'; flush privileges;
防火墙3306畅通的情况下仍然无法链接到远程
修改mysql的配置文件
bind-address = 192.168.1.* (本机的IP地址)
grant all privileges on *.* to 'root' @'%' identified by '密码'; flush privileges;
bind-address = 192.168.1.* (本机的IP地址)