mortenscheel/mysqldump-filter

CLI tool to filter table data from mysqldump

v0.2 2022-08-07 11:56 UTC

This package is auto-updated.

Last update: 2024-11-20 16:50:15 UTC


README

A CLI tool that allows filtering out data from selected tables in a .sql dump.

Installation

composer global require mortenscheel/mysqldump-filter

Usage

Example:

cat dump.sql | mysqldump-filter --skip=some_table,another_table | mysql -u username -p db_name

cat dump.sql | mysqldump-filter --only=some_table,another_table | mysql -u username -p db_name

Contributions

All contributions are welcome