Read-only file system when attempting mkdir /data/db on Mac [closed]

If you have a Mac and updated to Catalina or more recent version, then the root folder is no
longer writable.

I just changed the directory somewhere else.

Been using this command for now

mongod --dbpath=/Users/user/data/db

Leave a Comment