I’m trying to run checksum on my replication setup(Master1(Active),Master2(Passive),Slave1(slave of M2) and Slave2(slave of M2) ) but while running i’m getting below error.
Yes, i tried with recursion-method now its working but i’m not able to find the difference.
Manually i see the rows count difference between master and slaves.i’m using below command.
It looks like that “show processlist” and “show slave hosts” are not sufficient in your case.
The best bet is using dsn method which will enable you to include all the servers in the topology for the checksum. You will need to create a dsn table as defined in the document, and populate it with M2, S1 and S2’s dsn. Then you could invoke the tool from M1:
If you only want to check consistency between directly related master and slaves, like M1 and M2, or M2 to S1 and S2. It is possible to use the host method by setting report_host and report_ports for the slave servers. These changes would require server restart though. If you do this, then you could leave out --recursion-method option, and the tool will discover slaves automatically.
Are you using statement-based replication? Please check the LIMITATIONS section of the document. If you use row-based replication, you can check consistency more than one level.
And i’m using below command but its not finding the data difference between Master and Slave. Manually i’m able to see the data difference between the tables.