I had MongoDB up and running and confirmed that the databases were being added and accessed via RoboMongo on Port 27017. All the database files were being accessed in /data/db.
I tried to create a new database and could not get it created. I double checked the mongod.conf file with cat mongod.conf
. It seems to have the original Homebrew setup info:
systemLog:
destination: file
path: /usr/local/var/log/mongodb/mongo.log
logAppend: true
storage:
dbPath: /usr/local/var/mongodb
net:
bindIp: 127.0.0.1
I changed the db path a second time to /data/db with mongod --dbpath /data/db
. Still nothing. I also noticed a mongod.lock
file witha size of 4B. I run mongod and inside the Terminal, it says the journal dir=/data/db/journal
, recover : no journal files present, no recovery needed
and dbpath=/data/db
.
I was still having trouble with adding and also accessing the databases with a basic Mongoose connection via Robomongo on the local port 27017. I can't access the databases inside of /data/db
. With ps aux | grep mongod
, I found two instances running even after I shut down mongod
:
376 0.0 0.3 2718944 25140 ?? S 8:45PM 0:04.87 /usr/local/opt/mongodb/bin/mongod --config /usr/local/etc/mongod.conf
863 0.0 0.0 2452228 700 s005 S+ 9:58PM 0:00.01 grep mongod