DCS Redis Help Documentation

Redis Login Methods

2024-05-24 10:08:28

You can access your DCS Redis instance through password login or account + password login.

Password Login

Login method: Just enter the password to log in. No account number is required. For the cluster version: instance name#instance password; for the standard version: instance password.

Limitations: This method lets you log in with the default account for the instance. The default account is the account that is named after the instance name (for example, DCSRedis2-mxkvix******). You cannot log in to other ordinary accounts through this method.

Features: Same login method as the native Redis, and conforms to the usage habits of most users. However, since one instance supports only one default account, it can cause the instance to connect to multiple applications with the same account.

Example for Accessing with redis-cli:

# Assume that the default account is DCSRedis2-mxkvix, and the password is Bitga@58fw86.

redis-cli -h 198.28.34.67 -p 30101 -a Bitga@58fw86




Account + Password Login

Login method: Enter the account number and password. The account number and password should be separated by a number sign (#), and the format is user#password.

Limitations: Currently only the cluster version supports this login method, and account information needs to be maintained on the instance details page. You can use both the default account and an ordinary account to log in through this method.

Features: You can create multiple accounts for your Redis instance and log in with different accounts in different applications to improve data security. For information on how to create a database account, see Creating TODO.

Example for Accessing with redis-cli:

# Assume that the default account is DCSRedis2-mxkvix, and the password is Bitga@58fw86.

redis-cli -h 198.28.34.67 -p 30101 -a testAccount#Bitga@58fw86


wTIDt5izU35i