Skip to content

Releases

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 01:47

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

Choose a tag to compare

@master2sid2 master2sid2 released this 13 Nov 01:00

First public release.

replctl builds and maintains MySQL replicas:

  • clone copies 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 when clone_status confirms the clone started by this run. Temporary users and the plugin are removed on every exit path, including Ctrl+C and --timeout, and a running CLONE is killed on the server, not just abandoned.
  • switch sets 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).
  • lag shows 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.