mysql 主从数据校验
使用工具pt-table-checksum:
/usr/bin/pt-table-checksum --user=root --password='mysqlpass' --host=127.0.0.1 --port=3306 --truncate-replicate-table --ignore-databas es=mysql,test
数据不同步的处理:
pt-table-sync --execute --charset=utf8 --replicate percona.checksums --sync-to-master h=127.0.0.1,P=3326,u=root,p='mysqlpassslave'