Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compare whether the master-slave database is consistent in Mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

How to compare the master-slave database in Mysql? I believe many inexperienced people don't know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

From the library configuration:

Report-host=192.168.3.70

Report-port = 3306

Master library comparison: specify slave library

Pt-table-checksum-user=root-password=123456-host=192.168.3.70-databases=drama

Diffs cannot be detected because no slaves were found. Please read the-- recursion-method documentation for information.

TS ERRORS DIFFS ROWS CHUNKS SKIPPED TIME TABLE

03-18T10:56:16 00 28 10 0.008 drama.app_user

03-18T10:56:16 00 0 10 0.005 drama.joblock

03-18T10:56:16 00 0 10 0.004 drama.role

03-18T10:56:16 00 0 10 0.003 drama.stepsettle

03-18T10:56:16 00 343 10 0.007 drama.supplierinfo

03-18T10:56:16 00 0 10 0.004 drama.user_role

03-18T10:56:16 00 0 10 0.004 drama.webmodule

03-18T10:56:16 00 0 10 0.004 drama.webmodule_role

DIFFS: it stands for inconsistency. Consensus is 0.

Or

On the primary library, specify the primary library (--host=192.168.3.22)

Pt-table-checksum-user=root-password=qC0QKFiX-host=172.28.3.22-databases=drama-no-check-binlog-format

After reading the above, have you mastered the method of comparing master-slave databases in Mysql? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report