Created
January 20, 2014 10:43
-
-
Save t0mmyt/8518114 to your computer and use it in GitHub Desktop.
Difference in slave mysql log position
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
echo 'SHOW SLAVE STATUS\G' | mysql -u root -p$pw mysql | grep 'Master_Log_Pos' \ | |
| awk '/Read/{a=$NF} /Exec/{b=$NF} END{print a-b}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment