Skip to content

Instantly share code, notes, and snippets.

View michaeldg's full-sized avatar

Michaël de Groot michaeldg

View GitHub Profile
#!/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 ]