DEV Community

Donald Feury
Donald Feury

Posted on • Originally published at donaldfeury.xyz on

Setting up MongoDB on Windows

For a full overview of MongoDB and all my posts on it, check out my overview.

MongoDB can be quickly and easily set up on Windows using the default MSI installation wizard provided by the MongoDB team.

To get the installer, follow these steps:

  • Go to the MongoDB Download Center
  • Choose a specific version of MongoDB to install if you wish, otherwise, just leave it on the default version
  • For Platform , choose Windows
  • For Package , choose server
  • Click the Download button

Once the installer has finished downloading, go ahead and run it.

  • Choose your setup type - choose Complete if you don't want to choose what gets installed. If you do want to choose, select Custom
  • For the Service Configuration , if you want MongoDB to be managed as a Windows Service and start automatically, tick the box for Install MongoDB as a Service. ( I assume MongoDB is set up as a service for this tutorial)

You can choose to have a default Window Network User manage the service or you can customize the service setup

  • If you want to install Mongo Compass, a GUI application for interacting with your MongoDB data, you can do so as well.
  • Once installation is complete, MongoDB will already be running and accessible.

Once MongoDB is running, it will be available at mongodb://localhost:27017. You can connect to it using various tools such as mongosh, Mongo Compass, or any programming language using a module for MongoDB.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay