Created
March 15, 2012 15:37
-
-
Save deviantintegral/2044836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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