Avoid deprecation messages and using MongoDB with a defined user #122
fernandozangari
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The solution for deprecated messages and specific MongoDB user:
"dbname":"zebraDB",
"useDbAuth":"true",
"dbUser":"user",
"dbPassword":"pass",
"authSource":"admin",
use zebraDB
db.createUser({user: "user",pwd: "pass",roles: [ { role: "userAdmin", db: "zebraDB" }]})
The file adjuncted must change its extensio to js
db.txt
Beta Was this translation helpful? Give feedback.
All reactions