Today I needed to checksum and sync tables in simple master-slave replication.
So I used percona-toolkit for this.
Following checksumming (command should be running on master) of tables shows that repl.t9 and repl.t1 tables have differences:
$ pt-table-checksum --replicate=percona.checksums --create-replicate-table --empty-replicate-table --ask-pass h=localhost,u=root TS ERRORS DIFFS ROWS CHUNKS SKIPPED TIME TABLE 05-26T01:50:30 0 1 4 1 0 0.016 repl.t1 05-26T01:50:30 0 1 6 1 0 0.016 repl.t9
Let’s run sync and check result:
Continue reading
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net