df.tips
Why does MondoDB respond «Authentication failed» on a correct `db.auth` call?
MongoDB
mongodb-authentication
,
mongodb
dmitrii_fediuk
(Dmitrii Fediuk)
January 6, 2020, 2:58am
1
dmitrii_fediuk
(Dmitrii Fediuk)
January 6, 2020, 2:59am
2
It is because the authentication database is not selected.
Use:
use admin; db.auth("...", "...");