W
W
wini6662017-06-20 18:24:06
MongoDB
wini666, 2017-06-20 18:24:06

How to remove vorning when connecting to the database?

I connect to the mlab database, a warning pops up, how to remove this nonsense when connecting:
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.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooll, 2017-06-20
@zooll

no way

A
Alexander, 2017-06-20
@zkelo

Follow the advice given in the warning. And then it will stop appearing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question