Mysql 远程连接失败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.

将server 1 and server2 /etc/mysql/my.cnf中的

bind-address           = 127.0.0.1

分别改为 (本机ip 地址。)

2. 重启mysql

/etc/init.d/mysql restart

你可能感兴趣的:(Mysql)