Skip to content

Instantly share code, notes, and snippets.

@victorknust
Forked from Swader/mysql-import-export.sh
Created March 26, 2014 15:26
Show Gist options
  • Save victorknust/9785979 to your computer and use it in GitHub Desktop.
Save victorknust/9785979 to your computer and use it in GitHub Desktop.
# Dump to gzipped file
mysqldump -u user -p database | gzip > database.sql.gz
# Import from gzipped file
gunzip < database.sql.gz | mysql -u user -p database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment