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