Skip to content

Instantly share code, notes, and snippets.

@osde8info
Last active December 9, 2015 17:09
Show Gist options
  • Save osde8info/63df27b6550c6721553a to your computer and use it in GitHub Desktop.
Save osde8info/63df27b6550c6721553a to your computer and use it in GitHub Desktop.
mysqldump of specific tables
assuming user and pass are defined in .my.cnf
$ mysqldump -h myhost --skip-lock-tables --compact --max_allowed_packet=64M \
mydb $(mysql -h myhost mydb -N -e "show tables like 'myprefix%'") \
> db.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment