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.
On the next page, you will be asked to select the suitable version or package as there are multiple options available,
- 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).
- You need to select your platform/ Operating system like, Windows, RedHat, Ubuntu, or OSX whatever platform you prefer.
- 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.
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.
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 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.
Now you have two options, select whichever suits you,
I don't have MongoDB Compass,
I have 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]'.
Now, you are connected to your cluster and can explore the database/ sample data.
All done, we have successfully downloaded & installed MongoDB Compass GUI for MongoDB.
I hope this will help you.
Thanks.