MongoError: auth failed mongoose connection string

前端 未结 11 1678
一向
一向 2020-12-29 07:10

I can connect to the DB through terminal, but getting this error using mongoose and gulp. mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:246 MongoError: auth

11条回答
  •  渐次进展
    2020-12-29 07:55

    I have found the solution hier, looks like when you create an user from the mongo shell, it makes SCRAM-SHA-1 instead of MongoDB-CR. So the solution to create a new user with MongoDB-CR authentication.

    MongoDB-CR Authentication failed

提交回复
热议问题