Blog
  • Home
  • Awesome List
  • Helpful commands
  • About Me
Subscribe

mongodb

A collection of 1 post
mongodb

MongoDB authentication

In this post, i try to show one of the ways of using authentication on standalone versions and replica set of MongoDb STANDALONE INSTANCE Connect to mongo shell on the mongodb instance and run. use admin; db.createUser( { user: "adminUser", pwd: "adminPassword", roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ] } ); REPLICA SET
Feb 15, 2020 1 min read
Blog © 2023
Powered by Ghost