Navicat connect to a remote database error: 2003 - Can''t connect to MySQL server on '172.22.69.190' (10061)

Navicat connect to a remote database error: 2003 - Can''t connect to MySQL server on '172.22.69.190' (10061)

 

 

First, the reasons

 

Remote database using the default settings, bound IP is 127.0.0.1

 

Second, the solution

 

1. modify the configuration of the remote server 

vim /etc/mysql/mysql.conf.d/mysqld.cnf

will

bind-address = 127.0.0.1

Change

bind-address = 0.0.0.0

 

2. Restart the mysql service

service mysql restart

 

Guess you like

Origin www.cnblogs.com/ElegantSmile/p/10956636.html