I have installed mongodb in my Ubuntu 10.04.
I know that when it comes to start the mongodb server with the command \"mongod\",then it expects /data/db
If you are using mac catalina:
mongod --dbpath=/Users/user/data/db leave this window
then you can type in another window.
show dbs