This has been asked before, but I can't seem to get this resolved for me from other answers.
I am getting the following error when trying to run mongo
on OSX Yosemite:
2015-11-27T11:50:51.644+0000 W NETWORK Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused 2015-11-27T11:50:51.645+0000 E QUERY Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at connect (src/mongo/shell/mongo.js:179:14) at (connect):1:6 at src/mongo/shell/mongo.js:179
I installed via brew.
People have mentioned a /data/db directory (which I can't find) and removing a mongo.lock file (which I can't find either).
I can see mongo files located at /usr/local/bin, but no lock files.
Thank you