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

前端 未结 15 1930
终归单人心
终归单人心 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 03:04

    mongodb+srv://jehat123:@jehatarmancdeniz-x2yf7.mongodb.net/question-answer?retryWrites=true&w=majority
    

    Delete all of password part

    Use like this:

    mongodb+srv://jehat123:yourpass@jehatarmancdeniz-x2yf7.mongodb.net/question-answer?retryWrites=true&w=majority
    

提交回复
热议问题