Created
February 16, 2011 00:28
-
-
Save cpinto/828597 to your computer and use it in GitHub Desktop.
drop all tables from a specific mysql database
This file contains 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
mysql --silent --skip-column-names -u <username> -p<password> <database> -e "show tables" | awk '{ print "drop table " $1 ";"}' | mysql -u <username> -p<password> <password> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment