How to Install Mongo DB

Today we are going to discuss how to install MonogO DB

  1. Visit here https://www.mongodb.com/download-center/community to Download Mongo DB

2. UnZip the downloader folder and copy to your system folder ( You can another location if you want)

3. Open the CMD and Go MongoDB > bin

C:\Users\User>cd C:\MongoDB\bin

4. Then type below command to open Mongo Server

C:\MongoDB\bin>mongod

5. You will get below error

6. To get rid of this error we have to create a data\db folders in the location which is mentioned in the error

7 . Type again below command

C:\MongoDB\bin>mongod

8. Then open another command prompt and go to MongoDB > Bin and type below command

C:\MongoDB\bin>mongo

in the mongo Shell

9. Type below command to see all data bases

Lets meet in another post soon!!!!

Leave a comment

Create a website or blog at WordPress.com

Up ↑

Design a site like this with WordPress.com
Get started