Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have stetted up two databases which are synchronized with each other. But sometimes the sync process lags behind. I want to track this process and determine when the process is lagging?

share|improve this question

migrated from Sep 13 '11 at 15:23

This question came from our site for professional and enthusiast programmers.

The simplest way is to log into the database with a mysql client and run show slave status\G which will give you replication details including "seconds behind master".

For software options check

share|improve this answer

Seconds_Behind_Master from SHOW SLAVE STATUS is considered an unreliable measure of Slave lag. mk-heartbeat is often offered as a reliable alternative.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.