On Friday, 12 February 2016 03:58:23 UTC+11, arun.skumar:
as062a 120792 103294 0 19:07 pts/10 00:00:00 ./mongod --port 27018 --dbpath home/as062a/mongodb/data --auth
as062a 121974 121716 0 19:08 pts/11 00:00:00 grep -i mongo
[as062a@w216554lweb2003 bin]$ ./mongo -u userid -p passwd admin
MongoDB shell version: 2.2.1
connecting to: admin
> db.version()
2.2.0
Hi Arun,
A few things to check:
Did you restart mongod
after upgrading the binaries to a newer version?
Does ./mongod --version
report the expected version?
Are you connecting to mongod
on the correct port? Your command line mongod
is listening to port 27018 but the mongo
session is connecting to the default port (27017).
Regards,
Stephen