Created
March 5, 2015 16:08
-
-
Save rxnlabs/82c84ad569093445499c to your computer and use it in GitHub Desktop.
MySQL - Drop All Tables in a database (without dropping the database) using the command line.
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
mysqldump -u db_user -p db_password -h db_host --add-drop-table --no-data db_name | grep ^DROP | mysql -u db_user -p db_password -h db_host db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment