MySql远程登录失败 "Host is not allowed to connect to this MySQL server"
1.需要在阿里云开启3306 mysql服务端口
2.配置账号的访问权限,如图:
From Host:授权访问方式,localhost只能在服务器本机登录,%就可以所有IP访问了。
为了安全性,可以分配一个账号,设置对应的previleges访问权限。
1.需要在阿里云开启3306 mysql服务端口
2.配置账号的访问权限,如图:
From Host:授权访问方式,localhost只能在服务器本机登录,%就可以所有IP访问了。
为了安全性,可以分配一个账号,设置对应的previleges访问权限。