Loading...

How to install MongoDB on Windows 10

Step 1 — Download the MongoDB MSI Installer Package

Head over here and download the current version of MongoDB. Make sure you are logged in as a user with Admin privileges and select MSI as the package you want to download. Then navigate to your downloads folder and double click on the .msi package you just downloaded. This will launch the installation wizard.

Step 2 — Install MongoDB with the Installation Wizard

Find the dowloaded .msi file in the Windows Explorer. Double click the file and follow the prompts to install Mongo. Note: unless you specify a custom directory Mongo is most likely installed in the C:\mongodb directory**. However, based on settings on your machine Mongo may be installed other places. For example, C:\Program Files\MongoDB\Server\3.6\bin. Additionally, you may find MongoDB in the add/remove programs menu.

Step 3— Create the Data Folders to Store our Databases

Create the directory where MongoDB will store it’s files. From the command prompt run md \data\db. This is the default location. However, other locations can be specified using the –dbpath parameter. See the Mongo docs for more information.

Step 4 — Run and Verify That Setup was Successful

Start the mongodb daemon (Start > Command Prompt) by running from command line: C:\path\to\mongodb\bin\mongod.exe

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

Link below is my MongoDB server path, if you use other versions, please replace 3.6 by your version.

C:\Program Files\MongoDB\Server\3.6\bin

If you see something that looks like bash mongo command not found, then make sure you check back at all the steps above and follow it step-by-step making sure there are no typos and you haven’t missed any of the steps.

Have fun!

About zsadmin

Think different - Steve Jobs

We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.