Anda di halaman 1dari 2

MANGO DB

MongoDb is a Open Source database written in C++.



MongoDb stores data as documents. So it is a document oriented database.

Example: FirstName="Arun", Address="St. Xavier's Road", Spouse=[{Name:"Kiran"}],
Children=[{Name:"Rihit", Age:8}].
FirstName="Sameer",Address="8 Gandhi Road

In the above example there are two different documents (separated by ".").

You can download MongoDb from http://www.mongodb.org/downloads.




MANGO DB



Create a data directory:

MongoDb stores data in db folder within data folder. But, since this data folder is not
created automatically, you have to create it manually. Remember that data directory
should be created in the root (i.e. C:\ or D:\ or so).

Run the MongoDb server from command prompt:

To run MongoDb server from command prompt,
you have to execute mongod.exe file from bin folder of mongodb folder.
Open Command Prompt.
Goto C:\Program Files\MongoDB 2.6 Standard\bin

Execute mongod.exe.

Anda mungkin juga menyukai