All Products
Search
Document Center

AnalyticDB:Associate or disassociate a database account with or from a RAM user

Last Updated:Mar 28, 2026

AnalyticDB for MySQL uses two separate identity systems: Resource Access Management (RAM) users for cluster-level management and database accounts for database-level operations. To bridge these two systems — for example, to let a RAM user develop jobs or let a standard account read Object Storage Service (OSS) external tables — you must associate a standard account with a RAM user.

Prerequisites

Before you begin, make sure you have:

Identity systems and when to associate them

AnalyticDB for MySQL has two distinct account types that operate at different levels:

Account typeScopeExample operations
RAM userCluster levelCreate a cluster, configure an IP address whitelist, create a database account
Database accountDatabase levelCreate a database, create a table, create a view

For a complete overview of account types, see Account types.

Default behavior: Privileged accounts are automatically associated with the current Alibaba Cloud account or RAM user.

Using Spark in the Data Management (DMS) console as a RAM user requires two associations:

  1. Associate a standard account with the RAM user.

  2. Associate a privileged account with the Alibaba Cloud account of the RAM user.

The following table shows when an association is required:

ScenarioIdentity used to accessMust be mapped toPurpose
SQL editorRAM userStandard accountRead and write tables
Java Database Connectivity (JDBC) connectionStandard accountRAM userRead and write external tables, such as OSS external tables
Spark applicationRAM userStandard accountConnect to the AnalyticDB for MySQL cluster

Associate a database account with a RAM user

  1. Log on to the AnalyticDB for MySQL console. In the upper-left corner, select a region. In the left-side navigation pane, click Clusters. On the Enterprise Edition, Basic Edition, or Data Lakehouse Edition tab, find the cluster and click its cluster ID.

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

  3. On the Database Accounts tab, find the database account and choose Manage RAM Association in the Actions column.

  4. In the Manage RAM Association panel, enter the RAM user ID. To find the ID, view the basic information of the RAM user in the RAM console.

  5. Click OK.

Disassociate a database account from a RAM user

  1. On the Database Accounts tab, find the database account and choose Manage RAM Association in the Actions column.

  2. In the Manage RAM Association panel, click the image icon next to the RAM user ID, then click OK.