This topic describes how to create a database and account on an RDS for MariaDB instance.
Account types
Account type | Description |
---|---|
Privileged account |
|
Standard account |
|
Create a privileged account
- Log on to the ApsaraDB for RDS console.
- In the top navigation bar, select the region where the target RDS instance resides.
- Find the target RDS instance and click its ID.
- In the left-side navigation pane, click Accounts.
- Click Create Account.
- In the Create Account pane, configure the following parameters.
Parameter Description Database Account Enter the account name. The account name must meet the following requirements:
- Starts with a letter and ends with a letter or digit.
- Contains lowercase letters, digits, or underscores (_).
- Must be 2 to 16 characters in length.
Note If the name of the privileged account is the same as that of an existing standard account, the privileged account replaces the standard account.Account Type Select Privileged Account. Password Enter the account password. The password must meet the following requirements:
- Must be 8 to 32 characters in length.
- Contains at least three of the following character types: uppercase letters, lowercase letters, digits,
- Special characters include ! @ # $ % ^ & * ( ) _ + - =
Confirm Password Enter the account password again. Description Enter a description that helps identify the account. The description can be up to 256 characters in length. - Click OK.
Reset permissions of the privileged account
If the privileged account of your RDS instance encounters exceptions, for example, its permissions are revoked by accident, follow these steps to reset the permissions:
- Log on to the ApsaraDB for RDS console.
- In the top navigation bar, select the region where the target RDS instance resides.
- Find the target RDS instance and click its ID.
- In the left-side navigation pane, click Accounts.
- Find the privileged account, and click Reset Permissions in the Actions column.
- Enter the password of the privileged account to reset its permissions.
Create a standard account
- Log on to the ApsaraDB for RDS console.
- In the top navigation bar, select the region where the target RDS instance resides.
- Find the target RDS instance and click its ID.
- In the left-side navigation pane, click Accounts.
- Click Create Account.
- In the Create Account pane, configure the following parameters.
Parameter Description Database Account Enter the account name. The account name must meet the following requirements:
- Starts with a letter and ends with a letter or digit.
- Contains lowercase letters, digits, or underscores (_).
- Must be 2 to 16 characters in length.
Account Type Select Standard Account. Authorized Databases Select one or more databases on which you want to grant permissions to the account. You can leave this parameter empty and grant account permissions on specific databases when you create the databases. - Select one or more databases from the Unauthorized Databases box and click the right arrow to add them to the Authorized Databases box.
- In the Authorized Databases box, select Read/Write, Read-only, DDL Only, or DML Only for each authorized database.
If you want to grant the same permissions on multiple authorized databases at a time, select the authorized databases and click the button in the upper-right corner. For example, click Set All to Read/Write.
Note The button in the upper-right corner changes after you click it. For example, after you click Set All to Read/Write, the button changes to Set All to Read-only.
Password Enter the account password. The password must meet the following requirements:
- Must be 8 to 32 characters in length.
- Contains at least three of the following character types: uppercase letters, lowercase letters, digits,
- Special characters include ! @ # $ % ^ & * ( ) _ + - =
Confirm Password Enter the account password again. Description Optional. Enter a description that helps identify the account. The description can be up to 256 characters in length. - Click OK.
Create a database
- Log on to the ApsaraDB for RDS console.
- In the top navigation bar, select the region where the target RDS instance resides.
- Find the target RDS instance and click its ID.
- In the left-side navigation pane, click Databases.
- Click Create Database.
- Configure the following parameters.
Parameter Description Database Name - The database name must start with a letter and end with a letter or digit.
- The database name can contain lowercase letters, digits, underscores (_), and hyphens (-).
- The database name must be 2 to 64 characters in length.
Supported Character Set The character set that is supported by the database. Authorized Account Select one or more accounts that require access to the database. You can leave this parameter empty and configure account permissions after you create the database. Note Only standard accounts are available in the drop-down list. The privileged account has all permissions on all databases without authorization.Account Type Select the permissions that you want to grant to the selected accounts. You can select Read/Write, Read-only, DDL Only, or DML Only. Description Optional. Enter information that helps identify the database. The description can be up to 256 characters in length. - Click Create.
Related operations
Operation | Description |
---|---|
CreateAccount | Creates an account. |
CreateDatabase | Creates a database. |