Skip to content

Instantly share code, notes, and snippets.

@and1truong
Forked from crittermike/gist:3503791
Last active August 29, 2015 14:15
Show Gist options
  • Save and1truong/47613b12c03cc4e54d22 to your computer and use it in GitHub Desktop.
Save and1truong/47613b12c03cc4e54d22 to your computer and use it in GitHub Desktop.
# REGULAR VERSION
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | mysql -u root -p databasename
# DRUPAL VERSION
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | drush sqlc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment