Error Message: MongoError: bad auth Authentication failed through URI string

前端 未结 15 1880
终归单人心
终归单人心 2020-12-29 02:36

I\'m trying to connect to my mongoDB server via the connection string given to me by mongo:

"mongodb+srv://david:p         


        
15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 02:40

    The same problem i faced with mongoDB password authentication failed.

    "Error: bad auth Authentication failed."

    As per Pawan's suggestion given above i replaced my login password in MONGO_URI link with database password and it works. be sure to check that one also.

    If you not generated the generate new one or if created earlier then replace with new one.

提交回复
热议问题