连接mysql数据库 Navicat,2003-can't connect to MYSQL server on192.168.1.122 (10060)

 

可能的缘由以下:安全

一.关闭防火墙;xss

一、firewalld的基本使用this

启动: systemctl start firewalld阿里云

关闭: systemctl stop firewalldspa

查看状态: systemctl status firewalld .net

开机禁用  : systemctl disable firewalldserver

开机启用  : systemctl enable firewalld对象

 

二。添加一个安全组规则blog

    端口范围:腾讯云、阿里云等(TCP:3306),受权对象:0.0.0.0/0,其余默认就行get

    

 

三。若是 连接  若是提示:1130-host'111. 201.124. is not allowed to connect to this MYSQL server

https://blog.csdn.net/wsyzxss/article/details/90750531