Created
January 21, 2018 13:40
-
-
Save richjenks/6106332f545b548f47e9240043a2c236 to your computer and use it in GitHub Desktop.
MongoDB Snippets
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
// Start | |
mongod --dbpath C:\Programs\MongoDB\Data | |
// Dump & Restore | |
mongodump --host HOST_NAME --db DATABASE_NAME --username USERNAME --password "PASSWORD" --out BACKUP_PATH | |
mongorestore --host HOST_NAME --db DATABASE_NAME RESTORE_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment