Mongo Atlas: Connection authentication failed with custom databases

后端 未结 4 2170
迷失自我
迷失自我 2021-02-19 21:37

I am trying the Mongo Atlas Cloud. I create a cluster and i am trying a connection with the mongo shell: (same problem with mongo drivers)

mongo mongodb://***-cl         


        
4条回答
  •  春和景丽
    2021-02-19 21:59

    Adding to Nath's answer, use "--authenticationDatabase admin" if your connecting via the mongo shell and use "authSource=admin" for drivers.

    Tested with [MongoDB shell version: 3.2.8]

提交回复
热议问题