How to do Mongorestore


1. Get the mongodump for the database
2. Connect to mongoconsole
3. Create the database and switch to that new database into which data needs to be imported.










4. Get the mongodump file for the database from which ever box.
5. Copy to a folder and extract the contents into the folder
6. Open a command window, navigate to that folder 
7. Execute the command "mongorestore **the name of the mongodb dump**




No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days