0

I am trying to dump a MongoDB database on my local machine, so I used this command according to mongodb documentation :

mongodump --uri="mongodb://username:password@1XX.XXX.XX.XXX:27017"

But my terminal returns :

Failed: can't create session: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": Authentication failed.

On similar posts the solution seems to be adding --authenticationDatabase=admin but it didn't work. When I try only to mongo -host 1XX.XXX.XX.XXX authentication fails as well.

Did anyone have a similar problem ?

0 Answers0