This topic describes how to reset the password for an ApsaraDB for MongoDB instance. If you forget your password or did not set the password when you created an instance, you can reset the password of the instance.
Limits
You can only reset the password of the root user or an account for a shard or config server.
Note If you want to manage database users created by running the
db.createUser
command, you can use DMS or the mongo shell. For more information, see Manage MongoDB users though DMS or Log on to the MongoDB instance through the mongo shell.