I created a mongo daemon. Then, I did:
$ mongo --port 27017
> use admin
> db.createUser({
user: "AzureDiamond",
pwd: "hunter2",
roles: [{
role: "readWrite",
db: "test_db1"
}]
})
>^D
Then I tried to log into Mongo with the new account (exactly as in section 7 of Mongo's utorial):
$ mongo --port 27017 -u "AzureDiamond" -p "hunter2" --authenticationDatabase "admin"
This is the weird part. It still prompted me for my password, and then appended that to the database path that I connected to:
Enter password:
connecting to: 127.0.0.1:27017/hunter2
>
What did I do wrong? How can I connect to Mongo while supplying the password in the command line, but not having my password displayed on the screen?