Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

mydumper

$ mydumper Community High Risk
mydumper (OSS) · Database & Data · GPL-3.0 · macos / linux

mydumper 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.

FCRS-1.0 Score
74 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install mydumper
CLI vs MCP Decision CLI Only

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

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
Trust & Safety 19 / 25

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-file for auth; paired myloader -o overwrites tables
Setup & Portability 12 / 15

Native C binary packaged via Homebrew and GitHub RPM/DEB releases for Linux and macOS.

  • Available via brew install mydumper and Linux packages
Utility & Efficiency 13 / 15

Orders of magnitude faster than single-threaded mysqldump for large MySQL/MariaDB backups and restores.

  • Parallel chunked table dumping and compression (-t, -c)
Maintenance & Lineage 8 / 10

Actively maintained community project (mydumper/mydumper) under GPL-3.0.

  • Active mydumper/mydumper GitHub repository
Docs & Verifiability 7 / 10

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; -o flag differs between mydumper and myloader

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Reads --defaults-file / ~/.my.cnf credentials and MYSQL_PWD env var to avoid passing -p on the command line.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% free and GPL-3.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Dump schema definitions only without table rows
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

Create a compressed 8-thread database backup
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 than mysqldump.
  • + --no-data and --defaults-file support clean schema-only dumps and credential hygiene.

Caveats & Pitfalls

  • ! No --json status output or --dry-run flag.
  • ! Watch -o flag semantics: in mydumper it means --outputdir, whereas in myloader it means --overwrite-tables.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI