Forked from silviabotros/pt_stalk replication delay
Last active
December 27, 2015 10:28
-
-
Save hagope/7311039 to your computer and use it in GitHub Desktop.
Getting the Seconds_Behind_Master status from MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -h localhost -u root -e "show slave status\G" | grep "Seconds_Behind_Master" | awk '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment