mysqldiff --force --server1=root:c123@172.16.2.113 --server2=root:123@172.16.2.236 --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