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'

  

  

posted @ 2018-12-12 10:42  东哥加油!!!  阅读(447)  评论(0编辑  收藏  举报