New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mongoose connect throwing some warning #5333
Comments
this is a duplicate of #5304 |
Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. Can someone helllllp meeee!!!! |
message: 'Authentication failed.', |
For Db.prototype.authenticate method will no longer be available Error try this. mongoose.connect( "mongodb://username:password@ds125146.mlab.com:25146/dbName'", { useMongoClient: true } ); For MongoLab |
Set |
My connection string like this
mongodb://root:pass@127.0.0.1:27017/ai?authSource=admin
Everything working good but getting a wired message at the shell.
Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials.
For what is this ?
The text was updated successfully, but these errors were encountered: