Tuesday, 15 May 2012

How to Configure the MongoDB (No SQL Database)


Mongodb is one the No-Sql databases which stores the data in Json Formats etc

It is derived from the Latin word Mongous ( means- A very large )..
Well! Every one gives there own philosophy and defination i m not highlighting them here.
I m just gonna tell you that how it can be configured on the Windows . it is not a relational database so there is also some syntax difference. 



1. wel first download the mongodb from the official website of mongodb here is the Download link .
2.after downloading you just extract the folder (in case of zip or rar file) copy the folder of mongodb in you c:\ (drive).
3.create the directory(folder) in c:\ and name it 'data'
4. create another directory inside the 'data' folder " c:\data\ " and name it 'db'
5.go to the start menu and click run ( type cmd only in case of windows 8)
6.type 'cmd' in prompt and command window will be open ( Note: open with the privilages of Administrator or run as administrator)
7.type cd\ and go to the root directory
8.type 'cd mongo' 
9.type 'cd bin'
10.'C:\mongo\bin\mongod --install --logpath c:\mongo\mongo.log --dbpath c:\mongo\data'
11.type 'mongod'
12.open another cmd file run as administrator and Type 'mongo'

Mongo is configured now... You can enter the database and retrieve ,update and delete database using javascript syntax

For futher help i m refering the video toy you people.





Thnanks
Regards Aoun Ali naqvi (NED UET Karachi)

1 comment: