The inline-dumper
script is a Go program designed to dump MySQL database tables with various configurable options. It allows users to specify database connection details, choose whether to compress the output, generate checksums, and provide additional mysqldump
configurations.
mysqldump
configurations.Clone the repository:
git clone [email protected]:bmxmale/inline-dumper.git
cd inline-dumper
Build the script:
# Build for Linux
GOOS=linux GOARCH=amd64 go build -o bin/inline-dumper inline-dumper.go
# Build for macOS with Apple M3 processor
GOOS=darwin GOARCH=arm64 go build -o bin/inline-dumper inline-dumper.go
Run the script:
./inline-dumper
Follow the prompts:
The script will prompt you for various inputs such as database host, user, password, port, and name. You will also be asked if you want to enable gzip compression, generate checksums, and provide extra mysqldump
configurations.
127.0.0.1
).root
).root
).3306
).db
).mysqldump
configurations such as disabling column statistics, skipping table locks, and dumping only table structures.
This software was created with the strong support of GitHub Copilot ❤️, an AI-powered code completion tool that helps developers write code faster and with greater accuracy.
With :heart: from Poland 🇵🇱.