Forked from tofirius/mysql-dump-tables-by-prefix.txt
Last active
December 8, 2020 03:10
-
-
Save jjack-vertex/fda07379714125565aca43df2f0c3912 to your computer and use it in GitHub Desktop.
MySQL dump of tables that begin with a given prefix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql database_name -u username -pPassword -N -e 'show tables like "tableprefix\_%"' | xargs mysqldump database_name -u username -pPassword > prefixedtable_dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment