DEV Community

Cover image for MongoDB Installation on Windows: Your 2024 Guide
Arham Rumi
Arham Rumi

Posted on

MongoDB Installation on Windows: Your 2024 Guide

MongoDB, known for its flexible schema design and robust scalability, is a popular choice for developers and database administrators working on modern web and mobile applications. Setting up MongoDB on a Windows machine involves two main components: the MongoDB Server, which handles data storage, and MongoDB Compass, a graphical user interface for managing databases. This step-by-step guide will walk you through the complete installation process, ensuring a smooth setup for your development environment. Follow these steps carefully to avoid any errors during the installation.


Installing MongoDB Server

MongoDB Server is a robust back-end solution for storing and managing your data efficiently.

1 - Download MongoDB Server

Download the latest version of MongoDB Server by following these steps:

  • Visit the MongoDB Download Center and scroll down to find "MongoDB Community Server" under the "MongoDB Community Edition" section. Alternatively, you can go directly to the MongoDB Community Server download page by clicking on this official link: https://www.mongodb.com/try/download/community

  • Scroll down slightly to find the "Download" button. Ensure that you have selected the same options (your version may be the latest one) as shown below, then click the "Download" button.

MongoDB Community Server Download Section

2 - Installing MongoDB Server

Now, it’s time to install MongoDB Community Server. Make sure to follow along closely and stay in sync with each step.

  • Locate the downloaded file and double-click it to launch the installer. If a security prompt appears, confirm to proceed. You will then see the following screen; click "Next":

MongoDB Community Server - Welcome Screen

  • Accept the License Agreement by checking the box, then click "Next":

MongoDB Community Server - License Agreement Acceptance Screen

  • Click "Complete" to install all features.

MongoDB Community Server - Installation Type Screen

  • Select the options as shown in the image below (these should be selected by default), and then click "Next":

MongoDB Community Server - Service Configurations Screen

  • Ensure that the "Install MongoDB Compass" checkbox is unchecked, then click "Next."

MongoDB Community Server - Install MongoDB Compass Screen

  • Finally, click "Install" to begin the installation process.

MongoDB Community Server - Confirm Install Screen

MongoDB Community Server - Installation Screen

  • During the installation, you may encounter the following dialog; click "OK" to continue the installation process.

MongoDB Community Server - Reboot Alert Dialog

MongoDB Community Server - Installation In Progress Screen

  • After a short while, the installation will be completed; simply click "Finish."

MongoDB Community Server - Installation Finish Screen

  • You will now be prompted to restart your system. I recommend restarting to avoid any potential issues; however, if you are installing other software, you can select "No" for now. Just ensure that you start using MongoDB after restarting the system.

MongoDB Community Server - Reboot Now Screen

Congratulations! You have successfully installed MongoDB Server. Now, it’s time to complete the final step.


Installing MongoDB Compass

MongoDB Compass is a graphical tool for interacting with your MongoDB data visually.

1 - Download MongoDB Compass
Download latest version of MongoDB Compass by following these steps:

  • Visit the MongoDB Download Center and scroll down to find MongoDB Compass (GUI) under the Tools section. Alternatively, you can go directly to the MongoDB Compass (GUI) download page by clicking this this official link: https://www.mongodb.com/try/download/compass

  • Scroll down slightly to find the "Download" button. Ensure that you have selected the same options (your version may be the latest one) as shown below, then click the "Download" button.

MongoDB Compass Download Section

2 - Installing MongoDB Compass

Now, it's time to install MongoDB Compass.

  • Locate the downloaded file and double-click it to launch the installer. If a security prompt appears, confirm to proceed, and the installation will begin.

MongoDB Compass - Installation Screen

  • Once the installation is complete, MongoDB Compass will launch automatically. Click "Start" to begin using it. That's it!

MongoDB Compass - Launch Screen


Remember, this is the minimal setup required for every developer or database administrator. You can always download additional tools, such as MongoDB Shell, based on your needs from the official website at https://www.mongodb.com/.

Please comment below if you encounter any issues during the installation, and I will do my best to respond to your queries promptly. This will also help new developers in the future.

Don't forget to share this guide. Thank you!

Top comments (0)