DEV Community

Cover image for Installing MongoDB On Windows 10
Eldrige
Eldrige

Posted on • Edited on

Installing MongoDB On Windows 10

Installing and Setting Up MongoDB on Windows 10

MongoDB is a general-purpose, document-based, distributed database built for modern applications.
It is very popular since many developers think in terms of objects, and databases in MongoDB are just regular objects.
In this tutorial, we will discover how to install and setup the MongoDB shell, on a windows 10 computer.

Letโ€™s Start

Step One

๐Ÿ‘‰Head over to mongodb.com
๐Ÿ‘‰ Head to software, then community server. A small dropdown will appear, in the dropdown, select download community version. This will then direct you to the download page.

Alt Text

You can interact with MongoDB in multiple ways, The shell implicates manipulation of your database through the terminal.
Other options involve using the cloud ( MongoDB Atlas) and also using a graphic user interface ( MongoDB Compass).

Step Two

๐Ÿ‘‰ Once the download completes. Head over to your download folder and double click it on the downloaded file, to kickstart your installation process.
The installation is classic. The option we will select is the complete setup. So as to ship all basic features, Then, we can simply leave out the defaults.

๐Ÿ‘‰As soon as the installation is complete. Head over to your applications in the settings of your windows computer. You will see Mongo shell now listed as one of your applications.

Alt Text

๐ŸŽ‰ Great!!! You now have the Mongo shell on your pc.

Step 3

In order to make MongoDB accessible everywhere, we need to add it to our environment variables.
๐Ÿ‘‰ On the start menu, type env. You will see a popup, containing edit system environment variables. Click on edit environment variables.

Alt Text

Now click on it. You will see another menu, now click on environment variables. You will now click on the path system variable and add the entry to your mongo bin directory.
The directory looks like this C:\program files\mongo\server\4.2\bin

Alt Text

๐Ÿ‘‰ Now head to your terminal and type mongo. You will be presented with the following screen.

Alt Text

๐ŸŽ‰๐Ÿพ๐ŸŽŠCongratulations!!!! You have successfully installed MongoDB shell on your computer.

Top comments (0)