When Navicat for MySQL connects to the mysql database, the following error occurs: Can & #39; t connect to MySQL server (10060 ),

Source: Internet
Author: User

When Navicat for MySQL connects to the mysql database, the following error occurs: Can't connect to MySQL server (10060 ),

Some problems may be caused by the following reasons:

1. The network is disconnected;

2. The service is not started;

3. Firewall ports are not open;

A) check that the mysql configuration is correct and enable it correctly.

Service mysqld start;

Set mysql remote connection Permissions

Use mysql; update db set host = '%' where user = 'username'; (if it is written as host = localhost, this user does not have the remote access permission) flush privileges; grant all privileges on *. * to 'root' @ '%' identified by 'root' with grant option

B) Open the firewall port:

/Sbin/iptables-I INPUT-p tcp -- dport 3306-j ACCEPT # Add the port to be listened on
/Etc/init. d/iptables save # save settings

C) Security Group of the development service provider, downlink or inbound rules, save and restart the mysql Service

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.