DEV Community

Cover image for HOW TO INSTALL AND CONFIGURE MONGODB ON WINDOWS 10
Thalhatou Yahya
Thalhatou Yahya

Posted on

HOW TO INSTALL AND CONFIGURE MONGODB ON WINDOWS 10

1.INTRODUCTION

In this tutorial, we are going to show you how to install MongoDB on Windows 10 operating system .Lets start by briefly understanding what MongoDB is all about.

History of MongoDB

MongoDB was created by Eliot and Dwight (founders of DoubleClick) in 2007, when they faced scalability issues while working with relational database. The organization that developed MongoDB was originally known as 10gen.
In Feb 2009, they changed their business model and released MongoDB as an open source Project. The organization changed its name in 2013 and now known as MongoDB Inc.

What is MongodDB?

MongoDB is a NoSQL database. There are different types of NoSQL databases, so to be specific :
MongoDB is an open source, document oriented database that stores data in the form of documents (key and value pairs).

What is a document?

If you came from a relational database background then you can think of them as rows in RDBMS.

2.INSTALLATION

###STEP1
Go to MongoDB official download Page following this link select your operating system as windows and click download as shown in the screenshot below.
mongodb download page
A .msi file like this mongodb-windows-x86_64-4.4.2-signed will be downloaded in your system. Double click on the file to run the installer.
Alt Text

Step 2:

Click Next when the MongoDB installation window pops up.
Alt Text

Step 3: Accept the MongoDB user Agreement and click Next.

That’s it.Wait for it to install Click Finish once the MongoDB installation is complete.
Alt Text

3.Configuration

Step1

Go to the server path of mongoDb in Program Files and copy the bin folder path as shown below on the screenshot
Alt Text

Step 2

Now we need to add the path we copy to the system environment variable path so we can access mongoDB from our windows terminal directly and carry out operations.lets do this as show on screenshots below
Alt Text

Lets click on Environment Variables and Click on Path Variables

Alt Text
click on new
Alt Text
Now lets paste the path to the bin folder we copied earlier to the new variable path we created
Alt Text
Now to check if its working we are going to run our command prompt as an administrator and run the command mongo --version and if you see as shown on the screenshot below then its working.
Alt Text
Thanks for reading see you next time.

Top comments (0)