连接出错:Can’t connect to mysql server on xxx.xxx.xxx.xxx(10038)
解决方法:
1.修改/etc/mysql/mysql.conf.d 文件,将bind-address从127.0.0.1
修改为0.0.0.0
2.授权1
2mysql>grant all privileges on *.* to 'root'@'%' identified by 密码 with grant option;
mysql>flush privileges;
3.进入阿里云控制台设置安全组,添加公网入方向配置:允许 自定义 TCP 3306/3306 地址段访问 0.0.0.0/0