![]() The userAdmin role is a database-specific privilege, and only grants a user the ability to administer users on a single database. The two important roles for a user are userAdmin and userAdminAnyDatabase. To make mongodb as authenticated login, we have to pass -auth parameter while installing its service.īefore installing a service with authentication, we have to create a user with required role that can easily login in authenticated development environment and do required operations.įor getting information about all the roles of a user follow this link ![]() Now we will be saving this data to d:\mongodb\data folder. In this step we will try to setup mongodb by our custom configurations.īy default data directory for mongodb is c: \data. Echo logpath=D:\mongodb\log\mongo.log > D:\mongodb\mongod.cfg
0 Comments
Leave a Reply. |