2003 - cant connect ro mysql server on xxx (10060 unknown error)

When aliyun connection with the local server database Navicat, there has been found an error as shown below
Here Insert Picture Description

First, we use the Linux command line to enter the mysql data, switch to the mysql database

mysql -u root -p

Any remote host can access the database

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;

Refresh permission allows the operator to take effect

mysql>FLUSH PRIVILEGES;

Perform quit; or EXIT; or \ q to exit the database, execute the following command to open firewall ports 3306

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

Restart the firewall and see if the entry into force

firewall-cmd --reload		#重启firewall
firewall-cmd --list-ports	#查看已经开放的端口




At this point, if you still Rom, entered the server some settings, as follows:

Ali and so on into the service management console -> to enter the cloud server -> select instance
Here Insert Picture Description
selection manager
Here Insert Picture Description
to select the security group in this instance
Here Insert Picture Description
selection rules configuration
Here Insert Picture Description
option to add the security group rules
Here Insert Picture Description
after selecting add, change only the content of the red box on the line, write the description just
Here Insert Picture Description
saved after that, it will add to the success of the security rule group
Here Insert Picture Description
can then be normal landing

Published 51 original articles · won praise 11 · views 6072

Guess you like

Origin blog.csdn.net/weixin_42140261/article/details/105070062