When ever I try to connect to mongo db I always get this error as below.
MongoDB shell version: 2.4.3 connecting to: test Fri Apr 26 14:31:46.941 JavaScript execution f
I met with this problem too. And I figured it out by the following way:
First, open the terminal and write
mongod --dbpath {your project's path}
Second, open a new terminal and enter your project's path, write
mongo
Then it runs successfully