Fixing /data/db not found error in MacOS X when starting MongoDB

Bryant Jimin Son
4 min readApr 11, 2020
How to fix /data/db not found error in Mac OS X when Starting MongoDB

So, you are a mobile app developer or a web application developer. You decided to try MongoDB as the database because you heard a great thing about it. You installed successfully. Alright, so far so good. But you execute mongod command, you see the following error in your MacOS X Terminal when you start MongoDB for first time.

--

--

Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.