How to Install MongoDB Compass on MacOS?
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
Step 4: Now, run the following command on your terminal to install the MongoDB community version.
brew install mongodb-community
Step 5: To load the services, run the following command.
brew services start mongodb-community
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
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.
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.
You have successfully installed MongoDB Compass on your macOS.
Last Updated :
24 Jun, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...