Skip to content

Instantly share code, notes, and snippets.

@mcenirm
Created December 17, 2012 21:30
Show Gist options
  • Save mcenirm/4322456 to your computer and use it in GitHub Desktop.
Save mcenirm/4322456 to your computer and use it in GitHub Desktop.
Drop all tables from a MySQL database used for a Drupal 7 site.
drush sqlq 'SHOW TABLES' | tail -n +2 | sed -e 's,^,DROP TABLE ,' -e 's,$,;,' | drush sqlc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment