Data Management (DMS) is an integrated and visualized database solution that offers data management, structure management, user authorization, security auditing, data trend analysis, data tracking, BI charts, performance optimization, and server management. You can use DMS to connect to a standalone ApsaraDB for MongoDB instance for remote access and online management.

Preparations

Add the IP address of the DMS server to the whitelist of the ApsaraDB for MongoDB instance based on the network type. For more information, see Configure a whitelist for an ApsaraDB for MongoDB instance.

Note Skip this step if you have added the IP address of the DMS server to the whitelist of the ApsaraDB for MongoDB instance.
Table 1. IP addresses of the DMS server
Network type of ApsaraDB for MongoDB instance IP address of DMS server
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

10.152.163.0/24

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances.
  4. Find the target instance and click its ID.
  5. In the upper-right corner of the page, click Log On and select Primary or Secondary. You are redirected to the Data Management console.
    Select a node type
    Note
    • Primary: the primary node in the replica set instance. If you connect to this node, you can perform read and write operations on the databases of the replica set instance.
    • Secondary: the secondary node in the replica set instance. If you connect to this node, you can perform only read operations on the databases of the replica set instance.
  6. In the DMS console, enter the following information.
    Connect to an ApsaraDB for MongoDB instance through DMS
    Item Description
    Network address:Port The internal connection string of the Mongos node of the ApsaraDB for MongoDB instance is automatically entered.
    Database Username Enter the database account of the MongoDB instance. The initial account is root.
    Database Name Enter the name of the database to which the account belongs.
    Note
    • If Database Username is set to root, the database name is admin.
    • We do not recommend that you log on to a database as the root user in the production environment. You can create users and grant permissions based on your business needs. For more information, see Use DMS to manage ApsaraDB for MongoDB users.
    Password The password of the specified account.
    Note If you forget the password of the root account, you can reset the password by using the method specified in Set a password.
  7. Click Login.
    Note If you want your web browser to remember the password, select Remember password before you click Login.

Common connection scenarios

References