Home  >  Article  >  Database  >  mysql 主主复制漏少量数据

mysql 主主复制漏少量数据

WBOY
WBOYOriginal
2016-06-06 09:42:15913browse

mysql主主复制数据库

各位大神:

<code>    我们自己公司的业务系统部署了mysql主主复制,但近期发现有张数据量较大的表中,每天都会有若干条数据在从库(被复制的那一方)中会丢失(未插入进去),查看主库的binlog中有这条insert语句,再查看从库的relay log中也有这条insert语句,但到了从库的binlog却没有了这条insert语句,这句语句周围其他一批commit的语句到都被执行了,两个库中的error日志都没有任何异常体现,未插入的数据看了一下也是比较正常的数据。请问这个是由于什么导致的?如何能够保证主主复制两个库的数据都能一致?非常感谢!</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn