Recently using Navicat for MySQL to access the remote MySQL database, an error occurred, showing "2003-can ' t connect MySQL Server on ' localhost ' (10038)". So desperately Baidu, finally found a solution.
Method/Step
1
Reading the wrong window first.
Through Baidu, finally found the reason is: remote 3306 port is not open .
The following is a remote 3306 port open operation.
To connect to the server remotely, click "Start"-"Administrative Tools"-"Windows Firewall with Advanced Security".
In the open window, select "Inbound Rules" on the left and click "New rule" on the right to create a new inbound rule.
In rule type, select port, and then next.
Select "Specific local Port", enter 3306, and then next.
Check "Allow connections" and then next.
This step is selected by default on the line, and then next.
Finally enter the new inbound rule name, fill it out, you can understand.
When you are finished, you can see the new inbound rules in the list of inbound rules.
Now, once again, when you connect to the MySQL remote database locally, you find that you have access to it properly.
Problem solving.
How to troubleshoot MySQL remote connection report 10038 error