Created
January 22, 2013 00:08
-
-
Save scmc/4590775 to your computer and use it in GitHub Desktop.
dump all tables with a specific table prefix in MySQL
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
mysqldump -u root -pPASSWORD DATABASENAME `echo "show tables like 'TABLEPREFIX_%';" | mysql -u root -pPASSWORD DATABASENAME | sed '/Tables_in/d'` > db.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment