【mysql】2003-Can‘t connect to MySQL server on “XX.XX.XX.XX“ (10060 unknow error)

2003-Can't connect to MySQL server (10060 unknow error) error occurs when using Navicat or other database management tools to connect to the remote mysql server

After investigation, it was found that it was a firewall problem, OK! Then write the processing process below

1. Check the status of the firewall

systemctl status firewalld

2. Open firewall ports (open port 3306 permanently)

sudo firewall-cmd --zone=public --add-port=3306/tcp --permanent

 3. Overload firewall

sudo firewall-cmd --reload

For these three steps, the 2003 code error problem was basically solved, but when we linked, we found a 1045 Access denied for user'root'@'XX.XX.XX.XX' (using password: YES) error! What a shame! One wave has not settled, another wave rises again!

Then find a solution!

Don't worry if you encounter this problem, restart Navicat, you will have unexpected results! !

 

-------------------------------------------------- ----------------------
author: World coding
source: CSDN
original: https: //blog.csdn.net/dgxin_605/article/details/109689773
copyright notice : This article is the original article of the blogger, please attach a link to the blog post if you reprint it!

------------------------------------------------------------------------

 

 

Guess you like

Origin blog.csdn.net/dgxin_605/article/details/109689773