Open In App

How to Install MongoDB Compass on MacOS?

Improve
Improve
Like Article
Like
Save
Share
Report

MongoDB Compass is basically a tool to quickly explore your MongoDB data, run queries or even interact with data with full functionalities. It can be referred to as a GUI for MongoDB. It is free to use and can be run on different operating systems such as macOS, Windows, and Linux. The following method also works for the newer M1 macs.

Downloading and Installing MongoDB

To install MongoDB compass,  we need to have MongoDB installed on our system.

Steps for installation of MongoDB and MongoDB Compass 

Step 1: Before proceeding with the installation of MongoDB, we need to have Homebrew installed on our system. To install Homebrew head over to the gfg article provided below.

https://www.geeksforgeeks.org/homebrew-installation-on-macos

Step 2: After installation of Homebrew, restart your terminal. 

Step 3: On a fresh terminal, run the following command and press return.

brew tap mongodb/brew 

Running-command

 

Step 4: Now, run the following command on your terminal to install the MongoDB community version.

brew install mongodb-community

Installing-MongoDB

 

Step 5: To load the services, run the following command.

brew services start mongodb-community

Loading-services

 

Step 6: Now we need to connect to the mongo shell. In order to connect to the mongo shell, run the following command on your terminal

mongo

Connecting-to-mongo-shell

 

After successfully connecting to the mongo shell, head over to MongoDB compass’s official website to download MongoDB compass.

Step 7: Click on the download button as shown below.

Downloading

 

Step 8: Once the download is over, open the .dmg file. The installation manager opens up, drag MongoDB Compass to the Applications folder as shown below.

Installing-MongoDB-compass

 

You have successfully installed MongoDB Compass on your macOS.


Last Updated : 24 Jun, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads