Install Mongodb Mac Catalina

I recently bought a new iMac and moved all of my files over using Time Machine. The migration went really well overall and within a few hours I had my development machine up and running. After starting an application I’m building I quickly realized that I couldn’t get MongoDB to start. Running the following command resulted in an error about the data/db directory being read-only:

I tried every chmod and chown command known to man and woman kind, tried manually changing security in Finder, compared security to my other iMac (they were the same), and tried a bunch of other things as well. But, try as I might I still saw the read-only folder error when trying to start the server….very frustrating. I found a lot of posts with the same issue but they all solved it by changing security on the folder. That wasn’t the problem on my machine.

After doing more research I found out that Catalina added a new volume to the hard drive and creates a special folder where the MongoDB files need to go. The new folder is:

The MongoDB files can then go at:

I ran the following commands to install the latest version of MongoDB using Homebrew (see https://github.com/mongodb/homebrew-brew for more details):

  • I recently upgrade my Mac OS Sierra to Catalina and realize that the mongoDB was not usable in Catalina, somehow `brew update` and `brew upgrade` did not update the mongoDB to be able to run on Catalina. Below is a guide to fix it. The problem is related to the latest major macOS release, Catalina, and in this article, I’ll share my solution.
  • These are the most probable errors and how to solve and setup MongoDB on macOS Catalina. Please do have a look into my YouTube channel: Code Studio Sai Ankit that discusses everything related to coding from Computer Science Concepts, Competitive Coding tutorials, Codeforces Editorials, Development Projects.

Install Mongodb Mac Catalina Free

Mac version Catalina made the root folder is no longer writable. Brew has an updated version of mongodb to use a new path (which it creates itself), /usr/local/var/mongodb and following these instructions will fix the issue.

Install Mongodb Mac Catalina

Install Mongodb Mac Catalina

The app is developed by com mongodb In this page you’ll find instructions to install MongoDB on your computer. 15 4 I installed the MongoDB server Community edition on my Mac without a problem (seemingly). Thank you for downloading MongoDB Compass for Mac from our software portal This Mac program is distributed free of charge. I am trying to install MongoDb in my Macbook, My OS version is MacOS Catalina version 10.15.4 I tried the following commands - 1. Brew install mongodb-community But I am getting the.

I then went into the MongoDB config file at /usr/local/etc/mongod.conf. Note that it’s possible yours may be located in a different location based on how you installed MongoDB. I changed the dbPath value to the following and copied my existing DB files into the folder:

Install Mongodb Mac Catalina Update

Finally, I made sure my account had the proper access to the folder by running chown (something I had tried many times earlier but on a folder outside of /System/Volumes/Data):

Install Mongodb Mac Catalina Download

After that I was able to start MongoDB and everything was back to normal. Hopefully this saves someone a few hours – I wasted way too much time on the issue. 🙂

Install Mongodb Mac Catalina Os


Install Mongodb Macos Catalina


Comments are closed.