You can connect to an ApsaraDB for Redis instance by using Data Management (DMS) without the need to install clients. DMS allows you to visually manage ApsaraDB for Redis instances.

Background information

DMS is an all-in-one data management service that supports multiple relational databases and NoSQL databases. The service offers features such as data management, schema management, user authorization, security audit, data trend analysis, and data tracking. For more information about DMS, see Overview. You can use DMS to manage databases with ease. This enhances data security, improves management efficiency, and maximizes data value.

Limits

DMS has limits on Redis commands. For more information, see SQL Console for Redis.

Procedure

  1. Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click the instance ID.
  2. In the upper-right corner of the page, click Log into Database.
  3. In the DMS console to which you are redirected, configure the logon mode.
    Figure 1. Configure the DMS logon mode
    Configure the DMS logon mode
    Access mode Description
    Account + password login

    (recommended)

    Enter the database account and password. For more information about how to create a database account, see Create and manage database accounts.
    Note
    • By default, an ApsaraDB for Redis instance contains a database account named after the instance ID. Example: r-bp10noxlhcoim2****. You can use this account for logon. The account password is set when you create the instance.
    • If you forget your password, you can reset it. For more information, see Change or reset the password.
    noSecret login If you enable the password-free access for the ApsaraDB for Redis instance, you can log on to the instance without using passwords. For more information, see Enable password-free access.
    password login Use the password that is specified when your instance is created to log on to the ApsaraDB for Redis instance. The password is created for the database account that is named after the instance ID. If you forget the password, you can reset it. For more information, see Change or reset the password.
  4. Click Login.
    Note If you do not add the IP address of the DMS server to a whitelist of the ApsaraDB for Redis instance, a dialog box appears and prompts you to click Set IP address whitelists. The system creates a whitelist named ali_dms_group and adds the IP address of the DMS server to this whitelist.
    Figure 2. Complete logon in the example
    Complete logon
  5. After your logon, you can run Redis commands on the SQLConsole page. For example, you can run the DBSIZE command to query the number of keys in the current database.
    For more information about Redis commands supported by ApsaraDB for Redis, see Overview. For more information about all Redis commands and their usage, visit the Redis official website.

What to do next

Manage ApsaraDB for Redis instances by using DMS