When i connect using from the OS shell,
mongo --port 27017 -u "testusr" -p "testpwd" --authenticationDatabase "testdb"
Instead of switching taking me to testdb, it always logs me into test database? What I am missing here?
db.auth("testusr","testpwd")
is working wihtout any authentication issues?
How do I redirect to the correct database?