Skip to content

Instantly share code, notes, and snippets.

@deviantintegral
Created March 15, 2012 15:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviantintegral/2044836 to your computer and use it in GitHub Desktop.
Save deviantintegral/2044836 to your computer and use it in GitHub Desktop.
#!/bin/bash
(for i in `echo 'SHOW TABLES;' | mysql -u root --password=MYPASS -h localhost drupal7 | grep -v Tables_in`; do echo "DROP TABLE $i;"; done;) | mysql -u root --password=MYPASS -h localhost drupal7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment