Create an account
This topic describes how to create an account for an ApsaraDB RDS for MariaDB instance.
Account types
ApsaraDB RDS for MariaDB instances have two types of accounts: privileged and standard. You can manage all accounts in the ApsaraDB RDS console.
|
Type |
Description |
|
Privileged Account |
|
|
Standard Account |
|
Create a privileged account
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left navigation pane, click Accounts. Then, click Create Account.
-
Configure the following parameters and click OK.
NoteAfter you create the privileged account, it is automatically activated within seconds.
Parameter
Description
Database Account
Enter a name for the account. The name must meet the following requirements:
-
The name must be 2 to 16 characters long.
-
The name must start with a letter and end with a letter or a digit.
-
The name must contain only lowercase letters, digits, and underscores (_).
-
The name must be unique within the instance.
NoteIf you create a privileged account that has the same name as an existing standard account, the privileged account replaces the standard account.
Account Type
Select Privileged Account.
New Password
Set a password for the account. The password must meet the following requirements:
-
The password must be 8 to 32 characters long.
-
The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
-
The supported special characters are
!@#$%^&*()_+-=.
Confirm Password
Re-enter the password to confirm.
Description
Add a description for the account to make it easier to manage. The description can be up to 256 characters long.
-
Reset privileged account permissions
If a privileged account has issues, such as accidentally revoking its permissions with a REVOKE statement, you can restore its permissions.
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left navigation bar, select Accounts, and click Reset Account Permissions to the right of Privileged Account.
-
Enter the privileged account's password to reset its permissions.
Create a standard account
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left navigation pane, click Accounts. Then, click Create Account.
-
Configure the following parameters and click OK.
Parameter
Description
Database Account
Enter a name for the account. The name must meet the following requirements:
-
The name must be 2 to 16 characters long.
-
The name must start with a letter and end with a letter or a digit.
-
The name must contain only lowercase letters, digits, and underscores (_).
Account Type
Select Standard Account.
Authorization database
Grant permissions on one or more databases to the account.
-
Select one or more databases from the list on the left and click the > icon to add them to the panel on the right.
-
In the panel on the right, select a permission level for each database: Read/Write (DDL + DML), Read-only, DDL Only, or DML Only.
To grant the same permissions to multiple databases at once, click the button in the upper-right corner of the panel, such as Set all to read/write (DDL+DML).
Note-
The button's label changes after each click. For example, after you click Set all to read/write (DDL+DML), the label changes to Set all to read-only.
-
This parameter is optional. You can grant permissions to the account after it is created.
-
New Password
Set a password for the account. The password must meet the following requirements:
-
The password must be 8 to 32 characters long.
-
The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
-
The supported special characters are
!@#$%^&*()_+-=.
Confirm Password
Re-enter the password to confirm.
Description
Optional. Add a description to make the account easier to manage. The description can be up to 256 characters long.
-
API reference
You can call the CreateAccount operation to create a database account.