How to install MongoDB on Windows

Python Programming Training Certification

Flexible Hours

100 Assignments

Instructor Led online Training

50 LMS Access

24X7 Support

100% Skill Level

Enquire Now

4.9 out of 1000+ Ratings
Best Python Institute for Learning Python Course & Training, Live Project Training in Python with Django, Data Science and AI, Interview Assistance, Expert Coaching Trainers. Python Certification & Interview Assistance! Get free demo now!

Course Overview

Python is one of the world’s top programming languages used today and Python training has become the most popular training across individuals. Training Basket’s Python Training & Certification course covers basic and advanced Python concepts and how to apply them in real-world applications.Python is a flexible and powerful open-source language that is easy to learn and consists of powerful libraries for data analysis and manipulation. Our Python training course content is curated by experts as per the standard Industry curriculum. The curriculum, coding challenges and real-life problems cover data operations in Python, strings, conditional statements, error handling, shell scripting, web scraping and the commonly used Python web framework Django. Take this Python training and certification course and become job-ready now.

How to install MongoDB on Windows

Firstly you will have to download the latest release of MongoDB:

How to download MongoDB

You can download an appropriate version of MongoDB which your system supports, from the link “” to install the MongoDB on Windows. You should choose correct version of MongoDB acording to your computer’s Window. If you are not sure what Window version are you using, open your command prompt and execute this command:

  • C:\ wmic os get osarchitecture
  • OSArchitecture
    64 bit
    C:\ >

Note: MongoDB does not support Window XP.

MongoDB for Windows Server 2008 R2 edition

This version of MongoDB runs only on Window Server 2008 R2, Window7 64 bit, and the newer version of windows. You can’t operate it on older version of windows.

MongoDb for 64 bit Windows

This version of MongoDB runs only on newer version of Windows contains 64 bit operating system.

for example: Window Server 2008 R2, Window 7 64 bit etc.

MongoDb for 32 bit Windows

This version of MongoDB runs on only 32 bit windows. 32 bit version of MongoDB is generally used in testing and development purposes because it supports databases smaller than 2 GB.

How to install the downloaded file

In Window explorer, locate the downloaded MongoDB msi file, double click on that file and follow the instructions appears on the screen. These instructions will guide you to complete the installation process.

Note: If you want to move the MongoDB folder from default position to another position, it is necessary to issue the move command as an administrator. let us take an example to move the folder to C : \mongodb:

  • Select Start Menu > All Programs > Accessories

You can install MongoDB in any folder because it is self contained and does not have any other system dependency.

How to set up the MongoDB environment

A data directory is required in MongoDB to store all the information. Its by default data directory path is \data\db. you can create this folder by command prompt.

  • md\data\db

For example:

If you want to start MongoDB, run mongod.exe

You can do it from command prompt.

  • C:\Program Files\MongoDB\bin\mongod.exe

This will start the mongoDB database process. If you get a message “waiting for connection” in the console output, it indicates that the mongodb.exe process is running successfully.

For example:

When you connect to the MongoDB through the mongo.exe shell, you should follow these steps:

  1. Open another command prompt.
  2. At the time of connecting, specify the data directory if necessary.

Note: If you use the default data directory while MongoDB installation, there is no need to specify the data directory.

For example:

  • C:\mongodb\bin\mongo.exe

If you use the different data directory while MongoDB installation, specify the directory when connecting.

For example:

  • C:\mongodb\bin\mongod.exe– dbpath d:\test\mongodb\data

If you have spaces in your path, enclose the entire path in double space.

For example:

  • C:\mongodb\bin\mongod.exe– dbpath “d: \ test\mongodb\data”

How to configure directory and files

First to create a configuration file and a directory path for MongoDB log output after that create a specific directory for MongoDB log files.

Recently Trained Students

Jessica Biel

– Infosys

My instructor had sound Knowledge and used to puts a lot of effort that made the course as simple and easy as possible. I was aiming for with the help of the ZebLearn Online training imparted to me by this organization.

Richard Harris


I got my training from Zeblearn in the Python Certification Training, I would like to say that say he is one of the best trainers. He has not even trained me but also motivated me to explore more and the way he executed the project, in the end, was mind-blowing.

Candidate’s Journey During Our Training Program

Card image cap

Expert’s Advice & Selection of Module

Choosing the right type of module for the training is half the battle & Our Team of experts will help & guide you.

Card image cap

Get Trained

Get Trained & Learn End to End Implementation from our Expert Trainer who are working on the same domain.

Card image cap

Work on Projects

We Do make our student’s work on multiple case studies , scenario based tasks & projects in order to provide real-time exposure to them.

Card image cap


We have a dedicated placement cell in order to provide placement assistance & relevant interviews to our candididates till selection

Placement Partner


Leave your details


Download Course Content