使用圖形界面管理工具Navicat for MySQL連接Mysql數據庫時提示錯誤:Can't connect to MySQL server (10060)

導致些問題可能有以下幾個原因:
1、網絡不通; //ping 測試
2、服務未啟動; //CentOS服務器 # /etc/init.d/mysqld start
3、MySQL配置不容許遠程訪問,重啟命令:/etc/init.d/mysqld restart
user mysql;
select user,host from user;
grant all privileges on *.* to 'root'@'%' identified by '你的密碼' with grant option;
FLUSH PRIVILEGES;
select user,host from user;
grant all privileges on *.* to 'root'@'%' identified by '你的密碼' with grant option;
FLUSH PRIVILEGES;
4、防火牆端口未開放; //# netstat -tunlp |grep 3306
systemctl stop firewalld.service #停止firewall
5、阿里雲組策略問題;
經過測試發現,確實防火牆的原因。阿西吧。
