Repository navigation
Releases
Releases · master2sid2/replctl
v0.2.0
Changelog
- 4a43240 Add CI, automated GitHub releases and README badges
- ff6a894 Generate account passwords, fix backslashes, document accounts
Install
Download the binary for your platform, check it against SHA256SUMS, make it executable and put it on your PATH, or run go install github.com/master2sid2/replctl@v0.2.0.
v0.1.0
First public release.
replctl builds and maintains MySQL replicas:
clonecopies a source onto a destination with the MySQL Clone Plugin, with live per-stage progress and ETA, waits for the restart and only reports success whenclone_statusconfirms the clone started by this run. Temporary users and the plugin are removed on every exit path, including Ctrl+C and--timeout, and a runningCLONEis killed on the server, not just abandoned.switchsets up GTID replication or repoints an existing replica, after pre-flight checks (same instance,server_id, GTID mode, purged binary logs, errant transactions,read_only).lagshows replication status for one or many replicas, as text, a table or JSON, with--watch.
Also: --dry-run to print the SQL, --demo to try it without a server, --yes for scripts, --src-ip/--dst-ip for servers on a private network, config in ~/.config/replctl/config.yaml.
Tested against MySQL 8.0 and 8.4.
Install
Download the binary for your platform below, check it against SHA256SUMS, make it executable and put it on your PATH, or run go install github.com/master2sid2/replctl@v0.1.0.