mydumper
$ mydumper Community High Riskmydumper performs high-speed, consistent multi-threaded logical backups of MySQL and MariaDB databases into compressed per-table chunk files (restored via myloader). It runs non-interactively in scripts, though it lacks --json output and --dry-run.
brew install mydumper mydumper streams parallel logical dump files directly to local disk or S3-mounted storage; MCP is unsuitable for multi-threaded database dumps.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs headlessly with rich CLI flags (-B, -t, -c, -o, --no-data), but emits plain text logs and lacks --json or --dry-run.
- Non-interactive execution; plain log output with no
--json
Supports --defaults-file credential files and consistent snapshots (--trx-tables), while mydumper itself only reads from MySQL and writes dump files locally (though myloader -o drops target tables).
- Uses
--defaults-filefor auth; pairedmyloader -ooverwrites tables
Native C binary packaged via Homebrew and GitHub RPM/DEB releases for Linux and macOS.
- Available via
brew install mydumperand Linux packages
Orders of magnitude faster than single-threaded mysqldump for large MySQL/MariaDB backups and restores.
- Parallel chunked table dumping and compression (
-t,-c)
Actively maintained community project (mydumper/mydumper) under GPL-3.0.
- Active
mydumper/mydumperGitHub repository
Documented at mydumper.github.io/mydumper/ and --help, though flag differences between mydumper (-o outputdir) and myloader (-o overwrite-tables) require care.
- Docs at mydumper.github.io;
-oflag differs betweenmydumperandmyloader
Security, Auth & Guardrails
Reads --defaults-file / ~/.my.cnf credentials and MYSQL_PWD env var to avoid passing -p on the command line.
100% free and GPL-3.0 open-source.
# mydumper Agent Rules - Store MySQL credentials in `--defaults-file` or `MYSQL_PWD`, never `-p <password>` in command args. - Use `--no-data` first when only schema inspection is needed. - NEVER run paired `myloader -o` (`--overwrite-tables`) without explicit user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
mydumper -h 127.0.0.1 -B app_db --no-data -o ./schema_dump
Exports consistent CREATE TABLE / view DDL into ./schema_dump without dumping row data.
Controlled Writes & Previews
mydumper -h 127.0.0.1 -B app_db -t 8 -c -o ./backup_dir
Takes a consistent snapshot across 8 worker threads with gzip/zstd compression into ./backup_dir.
Strengths for Agents
- + Parallel worker threads (
-t) and chunk splitting make logical MySQL backups dramatically faster thanmysqldump. - +
--no-dataand--defaults-filesupport clean schema-only dumps and credential hygiene.
Caveats & Pitfalls
- ! No
--jsonstatus output or--dry-runflag. - ! Watch
-oflag semantics: inmydumperit means--outputdir, whereas inmyloaderit means--overwrite-tables.