MySQL Forums
Forum List  »  Replication

Re: Monitoring Replication
Posted by: James Whitt
Date: August 24, 2005 08:14AM

I was thinking about it some more, and realized that a good solution might be doing the following:

1) Running "SHOW MASTER STATUS" on the master
- Look at "File" and "Position"
2) Running "SHOW SLAVE STATUS" on the slave
- Look at "Master_Log_File" and "Read_Master_Log_Pos" on slave
3) Then compare the "File" to "Master_Log_File" and "Position" to "Read_Master_Log_Pos".

If all looks correct, we should then be able to determine if replication is occurring and at the same time making sure that the slave is up to date with the master.

Just a reminder that this would be on a MySQL 4.0 server. Can anybody see any holes in this solution?

Options: ReplyQuote


Subject
Views
Written By
Posted
2657
August 22, 2005 10:24AM
1839
August 23, 2005 12:15AM
Re: Monitoring Replication
1998
August 24, 2005 08:14AM
1948
August 25, 2005 01:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.