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

Ahsan Raza
1 min readDec 17, 2022

--

To download and install MongoDB on Windows, follow these steps:

  1. Go to the MongoDB website (https://www.mongodb.com/) and click on the “Download” button.
  2. Under the “Community Server” section, select the version of MongoDB that you want to download and click on the “Download (MSI)” button.
  3. Once the download is complete, open the downloaded MSI file to begin the installation process.
  4. Follow the prompts in the installation wizard to complete the installation.
  5. Once the installation is complete, open the Command Prompt and navigate to the MongoDB installation directory. By default, this is located at “C:\Program Files\MongoDB\Server[version]\bin”.
  6. Run the following command to start the MongoDB server:
mongod

7. Open a new Command Prompt window and navigate to the MongoDB installation directory.

8. Run the following command to start the MongoDB shell:

mongo

The MongoDB shell will now be running, and you can begin using MongoDB on your Windows machine.

--

--

Ahsan Raza

Web dev specializing in HTML, CSS, JS, and React. Passionate about creating intuitive and visually appealing web experiences. Follow for tips & resources.