MongoDB Complete Installation

I know guys If you are reading this, you are here for the MongoDB Complete Installation. Before we go for the complete Installation process let me give a brief about MongoDB for those readers who just heard about it. MongoDB is the most popular NoSQL Database, if you are working on a big website and need to store large amount of data than MongoDB is one what you are looking for.

Until now may be you are thinking its looks like normal database so what is difference than RDBMS and why it is called as NoSQL.

So what is NO (Not only) in NoSQL is, the way of storing data. If you had already worked on RDBMS than you would  know that RDBMS is the way of storing data in the structured form i.e in the Row-Column pattern. NoSQL stores data in unstructured form, which gives you far better performance, scalablity etc than the RDBMS. For complete difference please refer this RDBMS vs NoSQL.

Moving towards the Step by Step Installation Guide.

Download

Step1

 

Step2

 

Step3

 

Step4

 

After Installation Go to C:\Program Files\MongoDB\bin. You will find the bunch of executable(s) which are required to run MongoDB. But In all those executable(s), what you need to worry about are two files named

  1. mongod.exe : Its the actual mongo database. You first need to run this to start using your computer as database.
  2. mongo.exe : It is actually the place where you do all database stuffs by typing commands over here.

Path

To run MongoDB, you always need to run the command prompt and go to the path  “C:\Program Files\MongoDB\bin” . So to avoid this set Environment Variable for the Path.

  • Right Click on My Computer and Select Properties.
  • Click on Advanced Setting and Click Environment Variable.
  • Click on New
  • Write Variable Name as PATH (All Upper Case)
  • Write Variable Value the Path to bin . In my case it’s C:\Program Files\MongoDB 2.6 Standard\bin.

EV

 

  • Now Open Command Prompt Type mongod. This will run the mongo database.

 

MongoD

  • Open another Instance of command prompt and Type mongo. This will open mongo shell for you where you can fire database commands.

Mongo

Hope this will help you.. Happy Coding !!

Leave a Reply

Your email address will not be published. Required fields are marked *