Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to do a mysql dump of table filtered by prefix
mysql -u {username} -p{password} -N -e 'show tables like "{prefix}\_%"' {dbname} | xargs mysqldump -u {username} --password={password} --single-transaction {dbname} > {filename}.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.