db.updateUser() Definition Roles Authentication Restrictions Behavior Replica set Encyption Required Access Example Update User to Use SCRAM-SHA-256 Credentials Only d...
db.getUsers() Definition Required Access Example View All Users for a Database that Match the Specified Filter db.getUsers() Definition db. getUsers () Returns informat...
db.dropUser() Definition Behavior Replica set Required Access Example db.dropUser() Definition db. dropUser (username, writeConcern) Removes the user from the current ...
db.shutdownServer() db.shutdownServer() db. shutdownServer () Shuts down the current mongod or mongos process cleanly and safely. This operation fails when the current da...
db.setProfilingLevel() Definition Syntax Parameters Returns Behavior Examples Enable Profiler and Set Slow Operation Threshhold and Sample Rate Disable Profiler and Set Slow ...
db.serverCmdLineOpts() db.serverCmdLineOpts() db. serverCmdLineOpts () Wraps the getCmdLineOpts database command . Returns a document that reports on the arguments and conf...
db.resetError() db.resetError() db. resetError () Deprecated since version 1.6. Resets the error message returned by db.getPrevError orgetPrevError . Provides a wrapper...
db.printSlaveReplicationInfo() Definition Output db.printSlaveReplicationInfo() Definition db. printSlaveReplicationInfo () Returns a formatted report of the status of a ...