All Products
Search
Document Center

AnalyticDB:Database permission model

Last Updated:Mar 28, 2026

AnalyticDB for MySQL uses a hierarchical permission model that controls what each database account can do at the cluster, database, table, or column level. This topic explains the permission levels, maps SQL operations to the permissions they require, and shows how to view and edit permissions.

Permission levels

Permissions are granted at four levels.

LevelScope
GLOBALEntire cluster
DBA single database
TABLEA single table
COLUMNOne or more columns in a table

Example: To allow an account to read only one column, grant the SELECT permission at the COLUMN level:

GRANT SELECT (customer_id) ON customer TO 'test321'

Operations and required permissions

The following table maps each SQL operation to the permissions it requires and the levels at which those permissions can be granted.

OperationRequired permissionsSupported levels
SELECTSELECTGLOBAL, DB, TABLE, COLUMN
INSERTINSERTGLOBAL, DB, TABLE, COLUMN
INSERT...SELECT...FROM...INSERT, SELECTGLOBAL, DB, TABLE, COLUMN
UPDATEUPDATEGLOBAL, DB, TABLE, COLUMN
DELETEDELETEGLOBAL, DB, TABLE
TRUNCATE TABLEDROPGLOBAL, DB, TABLE
ALTER TABLEALTER, INSERT, CREATEGLOBAL, DB, TABLE
CREATE DATABASECREATEGLOBAL
CREATE TABLECREATEGLOBAL, DB, TABLE
SHOW CREATE TABLESELECTGLOBAL, DB, TABLE
DROP DATABASEDROPGLOBAL, DB
DROP TABLEDROPGLOBAL, DB, TABLE
CREATE VIEWCREATE VIEW, SELECTGLOBAL, DB, TABLE
DROP VIEWDROPGLOBAL, DB, TABLE
SHOW CREATE VIEWSHOW VIEW, SELECTGLOBAL, DB, TABLE
CREATE USER / DROP USER / RENAME USERCREATE_USERGLOBAL
SET PASSWORDSUPERGLOBAL
GRANT / REVOKEGRANTGLOBAL
To run CREATE VIEW REPLACE, the account must also have the DROP permission.

View permissions

SQL statements and Data Management (DMS) work on both Data Warehouse Edition (V3.0) and Data Lakehouse Edition (V3.0) clusters. The AnalyticDB for MySQL console is available for Data Lakehouse Edition (V3.0) clusters only.

Use SQL statements

Run the SHOW GRANTS statement to view the permissions of a specific account.

Use DMS

Prerequisites

Before you begin, ensure that you have:

  • An Alibaba Cloud account, or a Resource Access Management (RAM) user with the AliyunADBReadOnlyAccess permission. For instructions, see Grant permissions to the RAM user.

Steps

  1. Connect to your AnalyticDB for MySQL cluster using DMS.

  2. In the left-side navigation pane, click Instances Connected.

  3. Right-click the cluster and select Account Management.

  4. On the Account Management page, view the permissions.

Use the AnalyticDB for MySQL console

This method is available for Data Lakehouse Edition (V3.0) clusters only.

Prerequisites

Before you begin, ensure that you have:

Steps

  1. Log on to the AnalyticDB for MySQL console.

  2. In the upper-left corner, select the region where the cluster resides.

  3. In the left-side navigation pane, click Clusters.

  4. On the Data Lakehouse Edition (V3.0) tab, find the cluster and click its Cluster ID.

  5. In the left-side navigation pane, click Accounts.

  6. Find the account, click Permissions in the Actions column, and then click View Permissions.

  7. Select the permission level to view the account's permissions.

Edit permissions

SQL statements and DMS support both Data Warehouse Edition (V3.0) and Data Lakehouse Edition (V3.0) clusters. The console supports Data Lakehouse Edition (V3.0) clusters only.

Use SQL statements

Prerequisites

Before you begin, ensure that you have:

  • A database account with the GRANT OPTION permission.

Steps

Run the GRANT statement to grant permissions.

Use DMS

Prerequisites

Before you begin, ensure that you have:

  • An Alibaba Cloud account, or a RAM user with the AliyunADBFullAccess and AliyunServiceRoleForDMS permissions. For instructions, see Grant permissions to the RAM user.

Steps

  1. Connect to your AnalyticDB for MySQL cluster using DMS.

  2. In the left-side navigation pane, click Instances Connected.

  3. Right-click the cluster and select Account Management.

  4. On the Account Management page, find the account and click Edit in the Operation column.

  5. In the Edit User dialog box, click Global Permissions.

  6. In the Permission Type list, select or clear permissions as needed.

Use the AnalyticDB for MySQL console

This method is available for Data Lakehouse Edition (V3.0) clusters only.

Prerequisites

Before you begin, ensure that you have:

  • An Alibaba Cloud account, or a RAM user with the AliyunADBFullAccess permission.

  • A database account associated with the RAM user that has the GRANT OPTION permission.

Steps

  1. Log on to the AnalyticDB for MySQL console.

  2. In the upper-left corner, select the region where the cluster resides.

  3. In the left-side navigation pane, click Clusters.

  4. On the Data Lakehouse Edition (V3.0) tab, find the cluster and click its Cluster ID.

  5. In the left-side navigation pane, click Accounts.

  6. Find the account, click Permissions in the Actions column, and then click Edit Permissions.

  7. Configure the Authorization Level and Permission Configuration parameters.

  8. Click the icon 1 and then click OK.