Simple helper scripts for MariaDB and MySQL. Most tools require .my.cnf or .mylogin with login info in user directory.
Dev branch for things in progress or that don't really work.
This script will stream binlogs for the purposes of backup.
Add to root crontab on a backup server:
@reboot nohup /usr/local/bin/my-binlogger 2>&1 > /var/log/my-binlogger.log &
The conf file from conf/ should be placed in /etc/mysql/ (or the path in my-binlogger should be changed).
Usage: my-slavestatus [seconds]
Displays slave status. If seconds are provided it will use watch to refresh the status.
Usage: my-vars some-string
Greps the mysql variables for the provided string.