You can create a database account in the ApsaraDB for ClickHouse console to manage cluster access and permissions.
Limitations
You can create up to 500 database accounts for a single ApsaraDB for ClickHouse cluster.
Prerequisites
The ApsaraDB for ClickHouse cluster must be in the Running state. For instructions, see Create a cluster.
Procedure
-
Log on to the ApsaraDB for ClickHouse console.
-
In the upper-left corner, select your cluster's region.
-
On the Clusters page, go to the Instance list tab and click your target cluster's ID.
-
In the left-side navigation pane, click Account Management.
-
In the upper-right corner, click Create Account.
-
Configure the following parameters. This example creates a database account named
test.Parameter
Description
Example
Database account
The account name. It must meet the following requirements:
-
Must be unique within the cluster.
-
Must consist of lowercase letters, digits, and underscores (_).
-
Must start with a lowercase letter and end with a lowercase letter or a digit.
-
Must be 2 to 64 characters long.
test
Account type
The type of the database account. Valid values:
-
Privileged Account
-
Standard Account
NoteBy default, a
standard accounthas only connection permissions. To perform operations on databases or tables, use aprivileged accountto grant the required permissions. For more information, see GRANT.
Privileged Account
Password
The account password. It must meet the following requirements:
-
Must contain characters from at least three of the following categories: uppercase letters, lowercase letters, digits, and special characters.
-
Special characters include:
!@#$%^&*()_+-= -
Must be 8 to 32 characters long.
123456Aa
Confirm password
Enter the password again to confirm.
123456Aa
Description
An optional description for the account. It must meet the following requirements:
-
Must be 0 to 256 characters long.
-
Cannot start with
http://orhttps://.
Test account
-
-
Click OK.
After you create the account, you can view it on the Account Management page.