I have 2 servers running one as a master and another slave. I want to check weather both the tables have the same data. How can i check and confirm this? The table has more than 23 million rows.
Also as a first step i tried to run
CHECKSUM TABLE tbl;
But I am getting this error after 60 seconds:
ERROR 2013 (HY000): Lost connection to MySQL server during query
Please advice.
You could also use
mk-table-checksum, which is part of the Maatkit utilities.http://www.maatkit.org/doc/mk-table-checksum.html