MongoDB installation in windows system Go to http://www.mongodb.org/downloads Download 32bit zip file. After download, extract the file to c::/. Change <MongoDB 2.6 Standard> folder name to Go to C:\MongoDb\ and create tow folder.

mongodb.log(Text File)

Data Log

Go back int to the C:\mongodb
Create config file for MongoDB.

<Mongo.config> create in the mongodb folder

Open mongo.config file and paste this. dbpath=C:\mongodb\Data logpath=C:\mongodb\Log\mongodb.log diaglog=3

Save the file.

Go to the Wind+R or run and type cmd and open with an administrator. or

Open DOS as an administrator.

Change Directory c:\mongodb\bin> c:\mongodb\bin>mongod.exe --config="c:\mongodb\mongo.config" press enter

Open new command prompt with an administrator. Go to c::\mongodb\bin> mongo.

Now, the Server will start and you are in MongoDB prompt.

use test db

Test or check

Befor starting, please check your MongoDB Service, if it's running or not.

Follow the steps given below.

After installing MongoDB in your system, let's test some DB query in to MongoDB environment.

Use mydb

switch to my db

For other commands, please refer to the image given below.