Starting with Mongooo!!


PS: This post is ported from my own old website to here. 

MongoDB comes under the type of NoSQL databases. Now the question arise What is this NoSQL? lets keep it simple we can say NoSQL can be seen as something non relational database (though someone can argue that we can design relational database with NoSQL).

But anyway talking about MongoDB, so MongoDB is the leading NoSQL database till this date.

  • Its a Document-oriented database
  • It stores document in BSON format
  • Its written in C++
  • Its cross-platform
  • It has 32bit and 64bit but 64bit is recommended, because of the limitation of 2Gb data size in 32bit
  • It has both open source and commercial License
  • It supports vast range of language; I use mostly C# driver for my work.


First of all setting up the mongodb envireonment. Its very simple.

You need to download mongodb from here

Unzip the file to a location; in my case it would be C:\

Open up a command prompt CMD.exe (Ofcourse I use Windows)


So if you see the window like this then you are in good track

After this lets start another command prompt and do some testing whether our connection to mongodb instance works and lets run some commands.

So start a new command prompt and do the following


So now we are connected and we can run some commands in order to test the working so try the following commands


very simple example which saves a document to the DB ‘users‘ and then we use ‘find‘ command to display all the values inside the DB

Now, lets some GUI tool to do this. I am not very in favour of command lines; though they are very powerfull but still I like to use GUI tool. SO for our case we will use free tool called RoboMongo.

Its a free tool to use. Starting with how to connect to the mongo instance (Installation is very straight forward so I skip that part)

Open robomongo and click on Create you should see the below screen and fill in the boxes according to your settings. Thats it 


Now you should see the nice clean UI of Robomongo and you can view all the documents


You can infact execute shell commands here as well by typing the command and pressing F5


So thats all to just get started with mongodb and setup your small testing environment.

Further I will post more as I learn more about MongoDB.