Back
I am using Mac Lion. I was using mongodb version 1.4. I wanted to upgrade to 1.8.5 I followed http://shiftcommathree.com/articles/how-to-install-mongodb-on-os-x stepwise replacing each mongodb-Osx-x86_64-1.4.0 by mongodb-Osx-x86_64-1.8.5. everything goes smooth. I tried:
mongod
its ok. I can access localhost:28017 but,
mongo
shows command not found
how I can I fix this
To get rid of this problem you need to add the path to "mongo" to your terminal shell.
export PATH=$PATH:/usr/local/mongodb/bin
1st step: Go to your [mongodb installation dir]:
cd <mongodb installation dir>
2nd step: Type ./bin/mongo to start mongo:
./bin/mongo
31k questions
32.8k answers
501 comments
693 users