Data Management (DMS) is an integrated solution that allows you to manage data, structures, R&D processes, users, permissions, and access security. DMS can be used to manage relational databases such as MySQL and SQL Server and NoSQL databases such as MongoDB and Redis. You can use DMS to connect to an ApsaraDB for MongoDB instance for easy management.
Background information
DMS provides the following roles:
DMS administrator: DMS administrators can use all system management features except for data protection.
NoteOnly DMS administrators can manage users and the IP address whitelist.
If you assume the role of DMS administrator, you must log on to your instance for instance management. For more information, see Log on to an instance.
Security administrator: Security administrators can manage operations logs and use the data protection feature.
NoteOnly security administrators can use the data protection feature.
Database administrator (DBA): DBAs can manage instances, tasks, security rules, and configurations, and design the schema.
Common user: Common users cannot use the system management features.
If you assume the role of common user, you must first obtain the permission to manage your ApsaraDB for MongoDB instance. For more information, see Apply for permissions.
Prerequisites
Add the IP addresses of DMS servers to a whitelist of an ApsaraDB for MongoDB instance. For more information, see Configure a whitelist for an ApsaraDB for MongoDB instance.
Skip this step if you have added the IP addresses of the DMS servers to the whitelist of the ApsaraDB for MongoDB instance.
Network type of the ApsaraDB for MongoDB instance | IP address of the DMS server |
Virtual Private Cloud (VPC) | 100.104.0.0/16 |
Classic network | 120.55.177.0/24 121.43.18.0/24 101.37.74.0/24 10.153.176.0/24 10.137.42.0/24 11.193.54.0/24 |
Log on to an instance
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
In the upper-left corner of the page, select the resource group and region to which the desired instance belongs.
Click the ID of the instance or click Manage in the Actions column.
In the upper-right corner of the Basic Information page, click Log On.
Standalone instance: After you click Log On, you are redirected to the DMS console.
Replica set instance: Click Log On and select the node to which you want to log on. Then, you are redirected to the DMS console.
Sharded cluster instance: Click Log On and select the mongos node that you want to log on to. Then, you are reconnected to the DMS console.
In the Log on to Database Instance dialog box, configure the parameters described in the following table.
Parameter
Description
Database Type
The engine of the database. By default, the engine of the database to be connected is selected.
Instance Region
The region in which the instance is deployed. By default, the region of the current instance is selected.
Connection String Address
The endpoint of the instance. By default, the endpoint of the current instance is displayed.
Database Name
The name of the authentication database in which the database account is created.
NoteIf the Database Account parameter is set to root, the database name is admin.
We recommend that you do not log on to a database as the root user in the production environment. You can create users and grant permissions to them based on your requirements. For more information, see Manage the permissions of MongoDB database users.
Database Account
The account that is used to access the database. The initial account is
root
.Database Password
The password that is used to access the database.
NoteIf you forget the password of the root account, you can reset the password by using the method described in the (Optional) Reset a password topic.
(Optional) Click Test Connection to check whether the connection is successful.
If the Success message appears, the connection is successful. Click OK.
In the dialog box that appears, read the message carefully, click OK, and modify the configuration based on the message until the connection is successful.
Click Login.
NoteIf you want the browser to remember the password of the account, select Remember Password and click Log On.
Apply for permissions
For more information, see Manage permissions.