Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:25:42+00:00 2026-06-08T12:25:42+00:00

I have 2 5.0 MySQL servers running in Master-Master replication and before refreshing the

  • 0

I have 2 5.0 MySQL servers running in Master-Master replication and before refreshing the in-memory data representation I want to ensure that both databases have exactly the same content. To do so currently I am using the following logic

  1. Ensure that Slave_IO_Running & Slave_SQL_Running are set to yes on both side

  2. On one side issue show master status; to retrieve the current master file and position

  3. On the other side issue show slave status; to retrieve the value of Master_Log_File & Exec_Master_Log_Pos

  4. Then I compare the values from the 2 sides and if the second side values are equal or higher I return that the replication has taken place.

I am aware that the field seconds behind master might be another way to check http://dev.mysql.com/doc/refman/5.5/en/show-slave-status.html but it says that on slow networks it might not be exact.

The main reason why I am asking is because I have been seeing cases where one the master’s position could be 35000 and on the slave it is only at 2000 and nothing is happening as if the catalogs from which the show slave status is based were not updated in a timely manner.

I am starting to design an alternative verification method involving checksums following the percona’s toolkit idea.

Any thoughts and suggestion warmly welcomed!

Cheers,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:25:45+00:00Added an answer on June 8, 2026 at 12:25 pm

    Instead of Seconds_Behind_Master I use pt-heartbeat from Percona Toolkit to monitor replication lag. You can use that tool to confirm that your secondary master is caught up to the primary master, but if you want to compare the actual data on the two masters I recommend pt-table-checksum.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 servers running one as a master and another slave. I want
We have a Rails application that is running in a MySQL master-slave set-up for
We have a database on our master server (PHP/MySQL) that stores our data thats
I have two MySQL servers configured in a multi-master replication setup. Each is a
We have a MySQL setup running a single master and two replication slaves. We
I have a myisam only dedicated 32 GB RAM mysql server that is running
I have bulk data of 2 gb on mysql server and I want to
I have a web-app that has a master mysql db and four slave dbs.
I currently have got 2 servers running mysql 5.1. Im settings them up as
We have a tasty mysql master + master setup running. This helps greatly during

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.