I'm trying to login using rmongodb and it does not authenticate. Here's my connection string:
myMongoConnection <- mongo.create(host = "<myip>",db = "geoLoc", username = "<myusername>", password = "<mypassword>")
However, if I open a mongo shell on my computer and type:
mongo <myip>/geoLoc -u '<myusername>' -p '<mypassword>'
it connects just fine.
Moreover, if I log into the server and disable authentication by commenting out:
auth = true
, and then try:
myMongoConnection <- mongo.create(host = "<myip>",db = "geoLoc)"
it also works fine. So this is something to do with the username and password. I have no idea what though as I know they are "correct" as I can login with them!