A Step-by-Step Guide to Installing MongoDB on Windows
1 min readDec 17, 2022
To download and install MongoDB on Windows, follow these steps:
- Go to the MongoDB website (https://www.mongodb.com/) and click on the “Download” button.
- Under the “Community Server” section, select the version of MongoDB that you want to download and click on the “Download (MSI)” button.
- Once the download is complete, open the downloaded MSI file to begin the installation process.
- Follow the prompts in the installation wizard to complete the installation.
- 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”.
- 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.