Connect To Mongodb With Username And Password

[Solved] Connect To Mongodb With Username And Password | Perl - Code Explorer | yomemimo.com
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

Answers related to connect to mongodb with username and password

Code Explorer Popular Question For Perl