You must associate a RAM user with a standard account to allow the RAM user to develop jobs in the console or to enable the standard account to access OSS external tables.
Prerequisites
Differences between RAM users and database accounts
-
A RAM user operates at the AnalyticDB for MySQL cluster level. An Alibaba Cloud account can grant a RAM user permissions to manage clusters.
For example, you can create a cluster, configure an IP address whitelist, and create a database account.
-
A database account operates on databases within an AnalyticDB for MySQL cluster. Its permissions determine which databases it can manage.
For example, you can create a database, create a table, and create a view.
For more information, see Account types.
Usage notes
-
A privileged account is automatically associated with the currently logged-on Alibaba Cloud account or RAM user.
-
When a RAM user uses AnalyticDB for MySQL Spark in the Data Management Service (DMS) console, you must associate the RAM user with a standard account, and associate the RAM user's parent Alibaba Cloud account with a privileged account.
Scenarios for mapping to AnalyticDB for MySQL standard accounts
-
SQL editor: When you log on to the SQL editor as a RAM user, the RAM user must be mapped to an AnalyticDB for MySQL standard account to authorize access to databases and tables.
-
JDBC connection: When you log on by using an AnalyticDB for MySQL standard account, the standard account must be mapped to a RAM user to authorize access to external tables, such as OSS external tables.
-
Spark application: When you start a Spark application as a RAM user, the RAM user must be mapped to an AnalyticDB for MySQL standard account to access AnalyticDB for MySQL databases.
Associate a RAM user with a database account
Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. Find the cluster that you want to manage and click the cluster ID.
-
In the left-side navigation pane, click Accounts.
-
On the Database Accounts tab, find the target account and click Manage RAM Association in the Actions column.
-
In the Manage RAM Association panel, enter the RAM user ID.
NoteYou can view the RAM user ID on the Users page of the RAM console.
-
Click OK.
Disassociate a RAM user from a database account
-
On the Database Accounts tab, find the target account and click Manage RAM Association in the Actions column.
-
In the Manage RAM Association panel, click the
icon next to the RAM User ID and click OK.