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
#!/bin/bash | |
# | |
# https://gist.github.com/michaeldg/d6cddbc979d0ff127661dc9e4b7c7388 | |
# | |
# This script extracts a MariaDB row based replication (RBR) binary log, passes it on to binlog-rbr-to-sbr.py and digests the output. | |
# Relies on https://gist.github.com/shlomi-noach/cc243fd690403e7617e3 and pt-query-digest being present in $PATH | |
# | |
# Author: Michaël de Groot <michael.degroot@mariadb.com> | |
if [ -z $1 ] |