How To

How to Install MongoDB on Windows 10

In this article, we will learn how to install and configure MongoDB on Windows 10. Follow the described steps to install MongoDB effortlessly.

What is MongoDB?

MongoDB is a collection and document-based non-relational database. Every document is stored in a collection. And every collection can store lots of documents. MongoDB is a non-relational database. Thus, it does not follow any fixed structure. Every document structure in a collection may be different. MongoDB is in the family of the No-SQL database.

In terms of performance and scalability, MongoDB is most a hardcore performer. MongoDB uses a non-relational data structure that makes it more flexible than other relational databases like PostgreSQL, MySQL, etc. And the best thing about MongoDB is that it is open-source and free.

Download and Install MongoDB on Windows

MongoDB provides GUI installation for Windows, so no need to worry if you are not familiar with the windows command line. Just follow these steps to install.

Step 1: Download MongoDB Server

64 bit MSI and Zip version of MongoDB is available at MongoDB’s official website. we can download it from the below link.

https://www.mongodb.com

Step 2: Install MongoDB

Run the MSI installer to install MongoDB on your machine.

  • Click Next to continue.
  • Accept terms and conditions.
  • Choose the setup type Complete/Custom (Complete is recommended)

Step 3: Setup MongoDB Service Configuration

Service configuration includes service-related changes. We can customize the path for our Data Directory and Log Directory. The data directory is a directory where all MongoDB databases will be stored. We can also change the service name for MongoDB.

Step 4: Install MongoDB Compass

MongoDB Compass is specially developed for the Windows platform. It provides visualization of databases, collections, and documents.

It is not compulsory to install MongoDB Compass. We can install it if we want by selecting the checkbox at the bottom left corner.

Click Next and click on the Install button.

The installation wizard will take a few minutes to install MongoDB on your machine.

After successful installation, we can run the MongoDB server by double-clicking on the mongo.exe shortcut or run it via the command line by running the below command.

C:\path\to\mongodb\bin\mongod.exe

Conclusion

I hope now you learned how to install the MongoDB database on your Windows machine.

Enjoy Programming 🙂

Nachiket Panchal

Founder & Administrator of `errorsea` Having interest in Programming & Technology.

Recent Posts

5 Important Things To Know About WordPress Before You Use It

There is a reason big-name companies like CNN use WordPress. WordPress is a popular content…

3 years ago

How to Install MySQL on Your PC in 3 Easy Steps

In this tutorial, I'm going to show you how to install MySQL on your computer.…

5 years ago

Download and Install Turbo C++ for Windows 10 (Full Installation Guide)

Download Turbo C++ for windows 10 in just 7 Mb and run your first C++…

5 years ago

PHP .HTACCESS Redirects

We can redirect any webpage to any other or redirect the whole domain or website…

5 years ago

PHP Redirect Pages

There are lots of methods to redirect pages, like refresh-redirect from META tag, redirect from…

5 years ago

PHP Include & Required

Include files in PHP are used in appending various global or config files. We can…

5 years ago