db
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
mdocker db provides database tooling with automatic dialect detection
(MySQL/MariaDB, PostgreSQL, Redis, MongoDB). Dumps land under
~/.config/multi-docker/snapshots/<project>/. See
Database Snapshots & Restore.
db list
Section titled “db list”List the DB services in a project.
mdocker db list <name>mdocker db list <name> --jsondb dump
Section titled “db dump”Dump a single database.
mdocker db dump <name> [--service S] [--out PATH]db snapshot / db snapshots
Section titled “db snapshot / db snapshots”Dump all DB services / list existing snapshots.
mdocker db snapshot <name>mdocker db snapshots <name>db restore / db restore-snapshot
Section titled “db restore / db restore-snapshot”Restore from a file, or from the snapshot directory.
mdocker db restore <name> <file> [--service S] [-y] [--no-pre-snapshot]mdocker db restore-snapshot <name> [<file|ts>] [--service S] [-y]| Flag | Meaning |
|---|---|
-y |
Skip the confirmation prompt. |
--no-pre-snapshot |
Skip the automatic pre-restore safety snapshot. |
--service S |
Target a specific DB service. |
db shell / db open
Section titled “db shell / db open”Interactive client, or launch TablePlus via a connection URL.
mdocker db shell <name> [--service S]mdocker db open <name> [--service S] [--print]If a project has multiple DB services, pass --service to choose one.
Dialect defaults
Section titled “Dialect defaults”| Dialect | Shell | Dump ext |
|---|---|---|
| MySQL / MariaDB | mysql |
.sql |
| PostgreSQL | psql |
.sql |
| Redis | redis-cli |
.rdb |
| MongoDB | mongosh |
.archive |
Related
Section titled “Related”Cookie-Einstellungen
Statistik-Werkzeuge setzen wir nur ein, wenn du zustimmst. Die notwendige Speicherung hält die Seite funktionsfähig; alles andere bleibt aus, bis du entscheidest.
Speichert deine Entscheidung aus diesem Dialog in deinem Browser (localStorage). Kein Cookie, keine Weitergabe an Dritte.
Google Analytics 4 über den Google Tag Manager, um die Nutzung der Seite zu messen. Wird erst nach deiner Einwilligung geladen.