Mysql remote connection failed 3306' (111 Connection refused)

 mysqldiff --force --server1=root:[email protected] --server2=root:[email protected] --difftype=differ testdb:testdb

# server1 on 172.16.2.113: ... ERROR: Cannot connect to the server1 server.

Error Can't connect to MySQL server on '172.16.2.113:3306' (111 Connection refused)

 

 

soulution:

1.

Put server 1 and server2 in /etc/mysql/my.cnf

bind-address           = 127.0.0.1

Change to (the local ip address.)

2. Restart mysql

/etc/init.d/mysql restart

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326578722&siteId=291194637
Recommended