I am try to connect my python to mongo db but getting this error .
i have create a user for rohan .
> show users;
{
"_id" : "test.rohan",
"userId" : UUID("c12dcc3e-d791-4886-8e3d-0c316fd5a009"),
"user" : "rohan",
"db" : "test",
"roles" : [
{
"role" : "readWrite",
"db" : "config"
}
],
"mechanisms" : [
"SCRAM-SHA-1",
"SCRAM-SHA-256"
]
}
Error detail: command SON([(‘authenticate’, 1), (‘user’, ‘rohan’), (‘nonce’, ‘ddd2127c331e77c1’), (‘key’, ‘fc7cc53585111f5050a68990614e3e26’)]
database.conf file
[mongodb]
database_type = mongodb
server = localhost
port = 27017
database = test
privileged_account = rohan
privileged_account_password = root
application_account = apprunuser
configuration_file = /etc/mongod.conf