Last updated Aug 5, 2022

Install MongoDB on Windows 10: Beginner-Friendly Step-by-Step Guide

New to MongoDB? Follow this easy guide to install and configure MongoDB on Windows 10 and start working with databases locally.

Install MongoDB on Windows 10: Beginner-Friendly Step-by-Step Guide

In this tutorial, we will learn how to install and set up MongoDB on a Windows10 machine step by step.

so, let's get started...

If you're looking to start developing applications with MongoDB, the first step is to install it on your computer. In this tutorial, we will guide you through the process of installing MongoDB on a Windows 10 machine.

If you are using macOS then click here.

How to install MongoDB on Windows10 step by step

1. Download the MongoDB MSI Installer Package

Go to the download page at https://www.mongodb.com/try/download/community.

Choose your OS and your desired MongoDB version and Click Download.

2. Install MongoDB with the Installation Wizard

Now navigate to your downloads folder and double click on the .msi package you just downloaded, it will launch the installation wizard.

Make sure to select 'Install MongoD as service' while installing.

 3. Create the Data Folders to Store our Databases

Navigate to the C Drive on your computer using Explorer and create a new directory data/db here.

4. Update Environment Varialbe

Open "Edit the system environment variable -> Advanced -> Environment Variables"

Click on Path -> Edit

Copy the path of installed MongoDB Server("C:\Program Files\MongoDB\Server\6.0\bin").

Click on New -> paste the installed MongoDB Server path. -> Click on "OK".

Click OK and close the "Edit System Environment Variable" screen. We have done the path setup. 

5. Verify That Setup was Successful

Open the command prompt and type "mongod --version". You should get output like below:

db version v6.0.0
Build Info: {
    "version": "6.0.0",
    "gitVersion": "e61bf27c2f6a83fed36e5a13c008a32d563babe2",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "windows",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

We can see the MongoDB version is "6.0.0" and other information.

This means that you have successfully installed and set up MongoDB on your local system!

Congratulations! You have successfully installed MongoDB on your Windows 10 machine. Now you can start using MongoDB for your next application development project.

 Installing MongoDB on Windows 10 is a straightforward process that can be completed in just a few steps. With MongoDB installed, you have a powerful tool at your disposal for building robust and scalable applications.

Tags

Available for projectsLet’s build together

Need this built properly,
not just explained?

I take on Angular and NestJS work directly — auth systems, multi-tenant SaaS, API rewrites and the deploy pipeline underneath them. You talk to the person writing the code.

Projects delivered
20+ Projects delivered
Angular • NestJS
7+ years Angular • NestJS
Average reply time
1 day Average reply time

What I can help with

  • Auth and permissions systems
  • Multi-tenant SaaS foundations
  • API design and rewrites
  • Deploy pipelines and VPS setup
  • Bug fixing and performance optimization
Send me a message

Tell me about your project and I’ll get back with a realistic scope and price.

Turn
Your Ideas
Into Reality

Stay in the loop

Get the finished tutorials, projects and resources in your inbox.

Join 5,000+ developers and get new tutorials, source code, product updates and exclusive content — straight to your inbox.

  • No spam
  • Useful content only
  • Unsubscribe anytime

Subscribe to TutsCoder

Be the first to get new tutorials, projects and tips.

Join 5,000+ developers already learning with us.

Learn
Build
Grow

Discussion

0 comments

Share your thoughts, ask questions or suggest improvements. Let’s learn and grow together!

No comments yet — be the first to start the discussion.

Join the discussion

Sign in to join the discussion. Your account also keeps your saved tutorials and path progress.