I am attempting to test the monger mongodb driver for clojure (which is essentially a wrapper around the java driver)
I start my mongodb instance, which works fine:
./mongodb-osx-x86_64-2.0.2/bin/mongod --port 28017 --dbpath /data/db/
But connecting to it via the shell fails:
./mongodb-osx-x86_64-2.0.2/bin/mongo -port 28017
MongoDB shell version: 2.0.2
connecting to: 127.0.0.1:28017/test
DBClientCursor::init call() failed
Error: Error during mongo startup. :: caused by :: DBClientBase::findN: transport error:
127.0.0.1:28017 query: { whatsmyuri: 1 } shell/mongo.js:86
exception: connect failed
Is there some crucial step I am missing to get this working?
You are connecting to the web admin console of the other server.
Try
and