Wednesday, February 3, 2016

Mongo DB Installation

Mongo DB Installation Steps:
Step 1:
Click this link to get the mongo DB software http://www.mongodb.org/downloads  
Step 2:
We will get this window, select one option based on O.S configured in your system
Step 3:
By selecting the above option we will get setup file

Step 4:
Double click on setup file we will get this window
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 1.PNG

Step 5:
Click the license agreement check box
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 2.PNG
Step 6:
Select Typical as setup type
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 3.PNG

Step 7:
Click Install option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 4.PNG
Step 8:
Click Finish option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 6.PNG

Mongo DB Connection:
Step 9:
After installing the mongo DB
We will get that installation path in this above location
C:\Program Files\MongoDB 2.6 Standard\bin
Step 10:
Open command prompt and copy the mongo DB installation path
cmd>cd C:\Program Files\MongoDB 2.6 Standard\bin


Step 11:
Mongo DB requires a data folder to store its files. The default location for the Mongo DB data directory is c:\data\db. So you need to create this folder using the Command Prompt. Execute the following command sequence
C:\>md data
C:\md data\db

Step 12:
C:\Program Files\MongoDB 2.6 Standard\bin >mongod.exe --dbpath "c:\data\db"
in this dB path represents the path where to store data, we will put that path in double-quotes(“ “)
This will show waiting for connections message on the console output indicates that the mongod.exe process is running successfully.




Step 13:
Now to run the mongo db you need to open another command prompt and issue the following command
C:\Program Files\MongoDB 2.6 Standard\bin >mongo.exe
MongoDB shell version: 2.4.6
Connecting to: test
>


5 comments:

  1. The tutorial is very helpful for a first timer like me, by the way if you could have given a
    tutorial on creating a free blog, it would have been very helpful for newbies like me.

    click for info

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. I bookmark this site and will find your posts frequently in the future. I am forwarding this site to my friends so they can also appreciate it. python course in ahmedabad

    ReplyDelete