
Super account, super authorityĭb.createUser()ĭb.

Root: Only available in the admin database. UserAdminAnyDatabase: only available in the admin database, giving the user the userAdmin permissions for all databasesĭbAdminAnyDatabase : Only available in the admin database, giving the user dbAdmin permissions for all databases. After the installation is complete, start the tool. ReadWriteAnyDatabase: only available in the admin database, giving the user read and write permissions for all databases Figure 2 Downloading Robo 3T Double-click the robo3t-1.3.1-windows-x8664-7419c406.exe file to start the installation.

ReadAnyDatabase: only available in the admin database, giving the user read permissions for all databases UserAdmin: Allow users to write to the ers collection, create, delete, and manage usersĬlusterAdmin in the specified database : only available in the admin database, and give users the management authority of all shards and replication set related functions. ReadWrite: Allow users to read and write the specified databaseĭbAdmin: Allow users to perform management functions in the specified database, such as index creation, deletion, viewing statistics or accessing system.profile Read: Allow users to read the specified database There are several roles indirectly or directly providing system super user access (dbOwner, userAdmin, userAdminAnyDatabase)

Switch to the admin database, and the added account is the administrator account.ģ. Mongodb does not have a default administrator account, so you need to add an administrator account first, and then enable permission authentication.Ģ. bin/mongod -config/opt/mongodb/data/nf -shutdownġ. Logpath =/opt/mongodb/data/logs/mongodb.log
