This is the required command on Mac for starting a mongodb server if you installed through homebrew, which is the reccomended installation route on Mongodb's documentation.
I also configured the same error just now. What I found was that you have to install MongoDB as a service, this option can be seen when mongoDB in installed. There are 2 options run mongoDB as a service or run mongoDB as a Local server we have to pick option 1 and things will get configured automatically.
2
Answers
This is the required command on Mac for starting a mongodb server if you installed through homebrew, which is the reccomended installation route on Mongodb's documentation.
Hope this prevented someone from the pain of having to scroll through 20 wrong answers on the other page.
I also configured the same error just now. What I found was that you have to install MongoDB as a service, this option can be seen when mongoDB in installed. There are 2 options run mongoDB as a service or run mongoDB as a Local server we have to pick option 1 and things will get configured automatically.