1.问题背景
mysql 安装只可以localhost访问连接,远程ip无法连接
报错信息:message from server: "Host ‘xxx’ is not allowed to co
等等
2.解决办法
A>先用本机localhost登录,执行sql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY 'password' WITH GRANT OPTION;
root:表示你要开放的远程连接的用户名
password:表示要开放的远程连接用户的用户密码
B>如果连接不上,则把windows的防火墙允许mysql通过