How To Download And Install MongoDB Compass

Introduction

 
In this article, we will learn how to download and install MongoDB Compass, the GUI for MongoDB in windows.
 
MongoDB Compass is GUI for MongoDB, which helps us to visually explore our data, run queries in seconds, and perform full CRUD functionality with your data. You can also view and optimize your query performance and this GUI is available on Linux, Mac, or Windows.
 
Let's see how to download and install it on Windows 10,
 
Go to the official website of MongoDB and navigate to the software section where you will find the option for Compass GUI for MongoDB,
 
How To Download And Install MongoDB Compass
 
You will be redirected to the product page as shown below, click on the Try it now button, 
 
How To Download And Install MongoDB Compass
 
On the next page, you will be asked to select the suitable version or package as there are multiple options available,
  1. You can select a different version but personally, I'll recommend you to go with the stable version (for now latest and stable version is 1.26.1).
  2. You need to select your platform/ Operating system like, Windows, RedHat, Ubuntu, or OSX whatever platform you prefer.
  3. The third one showing you the package as ZIP or EXE, this one depends upon the option you choose with the platform. 
Select the most suitable option and click on the download button.
 
 How To Download And Install MongoDB Compass
 
If you choose to download the zip file then download and extract that file into a folder and find the executable file named 'MongoDBCompass.exe' or if you downloaded the EXE file then just double click on it and it will be installed in a few minutes and will be ready to use.
 
How To Download And Install MongoDB Compass
 
Click on the Get Started button.
 
The next phase will ask you for the connection string, do not worry about that if you don't have that yet. You can always create your new cluster and then generate your connection string by just clicking on CREATE FREE CLUSTER button.
 
 How To Download And Install MongoDB Compass
 
How to get your connection string? For that, you need to login into your MongoDB Atlas account and create your own cluster then click on Connect and you will be prompted to select how do you want to connect, you can connect using mongo shell, connect through an application or Connect using MongoDB Compass. Click for MongoDB Compass.
 
 How To Download And Install MongoDB Compass
 
Now you have two options, select whichever suits you,
 
I don't have MongoDB Compass, 
How To Download And Install MongoDB Compass 
I have MongoDB Compass,
 
How To Download And Install MongoDB Compass 
 
There you go, you will find your connection string on the screen, Just copy the connection string and paste it over there and just click on connect.
 
Note
Connection string format, in my case MongoDB server is hosted on AWS Cloud so my connection string is as follows,'mongodb+srv://Admin:<password>@yourcluster.rtlpe.mongodb.net/test' replace <password> with your password.
 
If the database server running locally then you can write it as 'mongodb://localhost', we can connect remotely as well, just make sure MongoDB server is up & running on the remote machine we can write the connection string in this format 'mongodb://[host]:[port]'.
 
For more, we can always refer to the official documentation Connection String URI Format.
 
 How To Download And Install MongoDB Compass
 
Now, you are connected to your cluster and can explore the database/ sample data.
 
 How To Download And Install MongoDB Compass
 
All done, we have successfully downloaded & installed MongoDB Compass GUI for MongoDB.
 
I hope this will help you.

Thanks.


Similar Articles