A Comprehensive Guide On How to Install MongoDB on Windows

MongoDB is a popularly used NoSQL database. It is widely used for web application development and real-time storage. In this tutorial on MongoDB Installation on Windows, you will walk through the step-by-step installation and setup process of MongoDB. 

Now that you know what’s in store, continue reading the article, to dive deep into this topic. 

A Step-by-Step Guide to MongoDB Installation on Windows

Navigate to the download site

Navigate to the official MongoDB website

MongoDB Developer and Administrator Course

Gain in-depth knowledge and become an expertEnroll now
MongoDB Developer and Administrator Course

Cross-check the Specifications and Download MongoDB

Under the Software section, click on the Community server version. 

MongoDB_Installation

Make sure that the specifications to the right of the screen are correct. At the time of writing, the latest version is 4.4.5. Ensure that the platform is Windows, and the package is MSI. Go ahead and click on download.

Installation_MongoDB.

MongoDB Installation

You can find the downloaded file in the downloads directory. You can follow the steps mentioned there and install the software. 

MongoDB_Setup

Setup_MongoDB

On completing the installation successfully, you will find the software package in your C drive. C:\Program Files\MongoDB\Server\4.4\bin.  

/MongoDB.

You can see that there are mongo and mongod executable files. The mongod file is the daemon process that does the background jobs like accessing, retrieving, and updating the database.

Create an Environment Variable

It’s best practice to create an environment variable for the executable file so that you don’t have to change the directory structure every time you want to execute the file. 

Mongo_EnvironmentVariable

EnvVariable_MongoDB.

MongoDB Developer and Administrator: Free Course

MongoDB Developer & Administrator Basics for FREEStart Learning
MongoDB Developer and Administrator: Free Course

Execute the Mongo App

After creating an environment path, you can open the command prompt and just type in mongo and press enter. 

Mongo_Setup.

The mongo server is then generated and is up and running. 

Big Data Engineer Master's Program

Master All the Big Data Skill You Need TodayEnroll Now
Big Data Engineer Master's Program

Verify the Setup

To verify if it did the setup correctly, type in the command show DBS. 

Setup_Mongo

With that, you have successfully installed and set up MongoDB on your Windows system. 

MongoDB_Example

This demo sample has also created a database called mydatabase, with some data added to it. It has also displayed the same using the find() method. 

In the upcoming articles, you will learn more about MongoDB and how to work with it. 

Next Steps

We hope this article on MongoDB Installation on Windows has helped you. If you wish to make a career as a developer, then certification will come in handy. 

Simplilearn’s MongoDB Certification Training Course will help you master popular and essential topics like query, ingestion, sharding, data modeling, and data replication with MongoDB, along with the installation, update, and maintenance of the MongoDB environment. This course will also help you gain high-level proficiency in handling MongoDB configuration and backup methods, and the required monitoring and operational strategies. 

Have any questions for us regarding MongoDB? Please place them in the comments section of this page, and our industry experts will get back to you soon!

Happy learning!

About the Author

Chinmayee DeshpandeChinmayee Deshpande

Chinmayee is a Research Analyst and a passionate writer. Being a technology enthusiast, her thorough knowledge about the subject helps her develop structured content and deliver accordingly.

View More
  • Disclaimer
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, and OPM3 are registered marks of the Project Management Institute, Inc.