Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Latest commit

 

History

History
50 lines (39 loc) · 701 Bytes

README.md

File metadata and controls

50 lines (39 loc) · 701 Bytes

MySQL Quick Dump

Dump and restore database quickly with a single command.

Requirements

  • python >=3.9
  • mysql binary
  • mysqldump binary

Config

Set a .mqd.config file with database credentials in your current directory

[database]
host=localhost
port=3306
database=foo
user=bar
password=

[options]
output-dir=
mysql-bin=D:\xampp\mysql\bin\mysql.exe
mysql-dump-bin=D:\xampp\mysql\bin\mysqldump.exe
skip-tables=
snapshot-sub-process-max=15
restore-sub-process-max=1

Take a snapshot

python mqd snapshot NAME

Restore a snapshot

python mqd restore NAME

See availables snapshot

python mqd ls

Delete a snapshot

python mqd delete NAME