Question : mongodb add admin user
Answered by : httpsgithubcomgarzj
use admin
db.createUser({ user: "username", pwd: "password", roles: [ "root" ]
})
Source : https://devops.ionos.com/tutorials/enable-mongodb-authentication/ | Last Update : Fri, 24 Jul 20