Forked from tofirius/mysql-dump-tables-by-prefix.txt
Created
September 21, 2019 11:06
-
-
Save jvmvl/6a7f93cee8f4e1a0bd396cd7ffd7d845 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