Mongodb
Apparence
Connect and authenticate
# connect
mongo mongodb://localhost:27017
# alias
mongo
# connect and authenticate, use an environment variable to hide the password
mongo "mongodb://user:${DBPASSWORD}@<host>:<port>/admin?authSource=admin"
|
Authenticate
Fichier:Mongo.svg | db.auth("username", "pwd") db.auth("username", passwordPrompt()) |