Created
September 5, 2014 18:51
-
-
Save arielallon/69e2ee51fa0e54a3a414 to your computer and use it in GitHub Desktop.
Drop all tables
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
| mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "drop table $table" DATABASE_NAME; done | |
| # http://stackoverflow.com/a/8912749/1200542 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment