maatkit 工具疑问 table checksum和table sync

本文探讨了在使用mk-table-sync进行表同步时,遇到表不一致的情况,通过对比使用mk-table-checksum的检查结果,深入分析了问题原因并提供了解决方案。

http://code.google.com/p/maatkit/issues/detail?id=1028&colspec=ID%20Type%20Tool%20Summary

 

mk-table-checksum 发现两个表不一致,但是mk-table-sync 同步却没有发现不同的数据!!

 

[root@VMcentos-mysql-1 bin]# ./mk-table-sync --version
mk-table-sync  Ver 1.0.27 Distrib 6224 Changeset 6221
[root@VMcentos-mysql-1 bin]# ./mk-table-checksum --version
mk-table-checksum  Ver 1.2.14 Distrib 6224 Changeset 6211
[root@VMcentos-mysql-1 bin]# mysql -V
mysql  Ver 14.14 Distrib 5.1.41, for pc-linux-gnu (i686) using  EditLine
wrapper
[root@VMcentos-mysql-1 bin]# ./mk-table-sync --no-check-slave    --print 
h=192.168.0.3,u=root,p=1   h=127.0.0.1,u=root,p=l  --databases d --tables e

[root@VMcentos-mysql-1 bin]#这里没有数据需要同步
[root@VMcentos-mysql-1 bin]# ./mk-table-checksum   h=192.168.0.3,u=root,p=1
  h=127.0.0.1,u=root,p=l  --databases d --tables e
DATABASE    TABLE                     CHUNK HOST         ENGINE      COUNT
        CHECKSUM TIME WAIT STAT  LAG
d e     0 192.168.0.3 MyISAM       NULL         87762672    2    0 NULL NULL
d e     0 127.0.0.1    MyISAM       NULL       2915642746    6    0 NULL NULL
[root@VMcentos-mysql-1 bin]#这里的checksum却不一样
[root@VMcentos-mysql-1 bin]#

有人遇到过吗??

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值