Install Mongodb Macos Catalina

If you are like me, running mongo servers on cloud IDE’s is just not the same as the customizations I have in my visual studio code. The need to test MongoDB servers locally sounds like an ideal option but I was running into issues trying to get the darn thing installed.

  1. Install Mongodb Macos Catalina
  2. Install Mongodb Macos Catalina Operating System
Install mongodb macos catalina operating systemInstall Mongodb Macos Catalina

Install Mongodb Macos Catalina

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the. Apple can’t check app for malicious software. Using an app that can’t be checked for malicious software might harm your Mac or compromise your privacy. If you’re certain that the app you want to use is from a trustworthy source, you can override your Mac security settings to open it. See the Apple Support article Safely open apps on your Mac. Go to your MongoDB folder in OS X: cd /data/db.

All the guides I found were over a year old and focused on OS-X or El Capitan. This one should work for Mac OS Catalina. This is an attempt to capture how to install MongoDB and run the Mongod (MongoDB Daemon) in some personal notes that may help someone in the future (at least myself). Originally, I tried following various installation guides that all failed to find the formula and ran into odd errors about directories that didn’t exist is read-only. My hope is that this will be a good reference for you.

If you are running Catalina, the old way of changing permissions for data/db don’t work !

Install Mongodb Macos Catalina

Steps to Install MongoDB locally

Create/open a project or clone a repo then head to the folder above that one.

First, you need brew installed. You can find instructions for that here: https://brew.sh/, then run:

Seriously, it’s that easy. No need to run chmod like on other setups, you now have mongod and mongo running. You can test this by running:

Macos

You should see something like:

Install Mongodb Macos Catalina Operating System

This means you did it!