管理默认用户
管理数据库的默认用户。
Redis 企业软件 |
---|
创建数据库时,默认启用默认用户数据库访问权限 (选择未经身份验证的访问)。这为默认用户提供了对数据库的完全访问权限,并启用了与 Redis 6 之前的 Redis 版本的兼容性。
选择 Password-only authentication(仅密码身份验证),然后输入并确认默认数据库密码,以要求对数据库连接进行身份验证。

以默认用户身份进行身份验证
为数据库配置密码时,与数据库的所有连接都必须使用 AUTH 命令进行身份验证。有关更多信息,请参阅 Redis 安全性的身份验证部分。
AUTH <default-database-password>
Change default database password
To change the default user's password:
-
From the database's Security tab, select Edit.
-
In the Access Control section, select Password-only authentication as the Access method.
-
Enter and re-enter the new password.
-
Select Save.
Deactivate default user
If you set up role-based access control with access control lists (ACLs) for your database and don't require backwards compatibility with versions earlier than Redis 6, you can deactivate the default user.
Warning:
Before you deactivate default user access, make sure the role associated with the database is assigned to a user. Otherwise, the database will be inaccessible.
To deactivate the default user:
On this page