Tag Archives: CentOS 7.9 Install MySQL Error

[Solved] CentOS 7.9 Install MySQL Error: 2003- cannot connect to mysql server on ‘10.10.1.202’(10060 “Unknown error”)

 

After installation, the remote connection reports an error:

2003- cannot connect to mysql server on ‘10.10.1.202’(10060 “Unknown error”)

Solution:

Open 3306 ports

firewall-cmd --zone=public --add-port=3306/tcp --permanent
#Command Meaning
--zone #Role 
--add-port=3306/tcp #Add a port in the format of: port/communication protocol 
--permanent #Permanent

Restart the firewall

systemctl restart firewalld.servic

perhaps

 service firewalld restart

perhaps

firewall-cmd --reload