2003 - Can‘t connect to MySQL server on ‘xxx.x.xx.xxx‘ (61 “Connection refused“)

阿里云防火墙原因

0.放开3306防火墙,然后重启.

firewall-cmd --zone=public --add-port=3306/tcp --permanent
systemctl restart firewalld 

  

1.关闭防火墙

systemctl stop firewalld 

  

2.开启防火墙

systemctl start firewalld 

  

3.检查防火墙状态

systemctl status firewalld 

 

防火墙相关命令:

https://www.cnblogs.com/yuanzipeng/p/10813494.html

posted @ 2021-01-11 17:15  winyh  阅读(202)  评论(0编辑  收藏  举报