All Products
Search
Document Center

ApsaraDB for MyBase:Create a database account

Last Updated:Mar 28, 2026

ApsaraDB MyBase for MySQL supports two account types: a privileged account and standard accounts. This topic describes how to create both account types in the ApsaraDB MyBase console.

Prerequisites

Before you begin, ensure that you have:

Security recommendations

  • Follow the least privilege principle when creating accounts and granting permissions. Grant each account only the permissions required for its workload. If an account does not need to write data, grant only the Read-only permission on the database.

  • Use strong passwords and rotate them regularly.

Create an account

  1. Log on to the ApsaraDB MyBase console.

  2. In the upper-left corner of the page, select a region.

  3. In the left-side navigation pane, choose Instances > MySQL.

  4. Find the target instance and click Details in the Actions column.

  5. In the left-side navigation pane, click Accounts. On the page that appears, click Create Account.

  6. In the Create Account panel, configure the following parameters and click OK.

ParameterDescription
Database AccountThe account name. Requirements: <br>- MySQL 5.6: up to 16 characters <br>- MySQL 5.7 or MySQL 8.0: up to 32 characters <br>- Starts with a lowercase letter; ends with a lowercase letter or digit <br>- Contains only lowercase letters, digits, or underscores (_) <br>- Must be unique
Account TypeThe type of the account: <br>- Privileged Account: An instance can have only one privileged account. By default, it has Owner permissions on all databases on the instance. The permissions can be reset. The privileged account cannot be deleted. <br>- Standard Account: Multiple standard accounts are allowed per instance. A privileged account must exist before you can create a standard account. Permissions must be granted manually. Standard accounts can be deleted.
Authorized DatabasesApplies only to standard accounts. To grant permissions on one or more databases: <br>1. In the Unauthorized Databases section, select the databases to authorize. If no databases exist, create them first. <br>2. Click the > icon to move the selected databases to the Authorized Databases section. <br>3. For each database, select a permission type: Read/Write (DML), Read-only, or Owner. Owner permission is required to create, delete, or modify table schemas. <br>授权数据库
PasswordThe account password. Requirements: <br>- 8–32 characters <br>- Contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters <br>- Supported special characters: ! @ # $ % ^ & * ( ) _ + - =
Confirm PasswordRe-enter the password.
Description(Optional) A description to help identify the account. Maximum 256 characters.

What's next