Answer the question
In order to leave comments, you need to log in
Why is mongodb not logging in?
I create a user inside the database, to which the database says okay
> db.createUser({
... user:"evgzap",
... pwd:"evgzap",
... roles:["readWrite", "dbAdmin"]
... })
Successfully added user: { "user" : "evgzap", "roles" : [ "readWrite", "dbAdmin" ] }
{"t":{"$date":"2022-03-30T14:29:15.987+03:00"},"s":"I", "c":"ACCESS", "id":20249, "ctx":"conn16","msg":"Authentication failed","attr":{"mechanism":"SCRAM-SHA-1","speculative":false,"principalName":"evgzap","authenticationDatabase":"roomix","remote":"192.168.88.1:61945","extraInfo":{},"error":"UserNotFound: Could not find user \"evgzap\" for db \"roomix\""}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question