Created
November 1, 2014 22:47
-
-
Save loonison123/df5d5e554b3b7c491570 to your computer and use it in GitHub Desktop.
Rename database in MongoDB
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
| db.copyDatabase("db_to_rename","db_renamed","localhost") | |
| use db_to_rename | |
| db.dropDatabase(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment