Created
February 5, 2021 20:05
-
-
Save isopropylcyanide/d69fae1c124bcacd0113f8e22483befe to your computer and use it in GitHub Desktop.
connector-lostevent-mysql-binlog-check.sh
This file contains 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
# Note the oldest binlog file position | |
mysql -u <> -h <> -e "show binary logs"; | |
# Know the offset in the oldest binlog and its timestamp T | |
mysqlbinlog -vv /usr/local/var/mysql/mysql-bin.000038 --base64-output=DECODE-ROWS | less --base64-output=DECODE-ROWS | |
# If timestamp of lost event <= T, events have not rolled over (yet). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment