An RDS MySQL instance is a database server. You can create multiple databases on it to manage large volumes of business data. This tutorial shows you how to quickly create an RDS MySQL instance in the console and configure a database and account.
Overview
Before using ApsaraDB RDS features, create and configure an RDS MySQL instance. Use your Alibaba Cloud account—not a Resource Access Management (RAM) user—to avoid permission issues:
Purchase an RDS MySQL instance on the standard creation page.
Create a database in the instance.
Create a privileged account in the instance.
1. Create an RDS MySQL instance
Go to the RDS instance standard creation page.
Configure core parameters
Set the following core parameters to complete instance selection quickly. Keep all other parameters at their default values.
Select Billing Method (example: pay-as-you-go)
For short-term use, select Pay-As-You-Go. You pay by the hour and can release the instance anytime.
For long-term use, select Subscription . This upfront payment model costs less than pay-as-you-go.
For highly variable workloads, select Serverless. The instance has no fixed specifications and automatically scales performance based on workload.
Select Region (example: China (Hangzhou))
To connect via ECS: Choose the same region as your ECS instance for private network interconnection.
To connect from other devices: Choose a region close to those devices to reduce network latency. You will access the instance over the public network later.
You cannot change the region after purchase. Choose carefully.
Select Database Engine (example: MySQL 8.0)
MySQL 5.6, 5.7, and 8.0 are supported. Match the major version used by your application.
If you have no specific version requirement, choose MySQL 8.0 to access more features.
Select Product Series and Storage Type
Different product series and storage classes restrict access to certain features.
For trying out RDS MySQL or short-term testing, choose the High-availability Edition with Storage Type set to either Local SSD or Premium Performance Disk. This gives you access to more features at a lower cost.
Select VPC
To enable private network interconnection with an ECS instance in the same region, select the same VPC as your ECS instance. Otherwise, keep the default value.
Select Instance Type (example: General-purpose 2-core 4 GB)
RDS MySQL offers many instance types. Choose one based on your business needs. If the selected type proves insufficient after purchase, you can change the instance type.
Confirm configuration and place order
Review your instance configuration on the right side of the page. Hover over View Details to see a breakdown of costs in a pop-up window. RDS instance fees depend on billing method, product series, instance type, storage class, and storage capacity.
After confirming your settings, click the Pay Now button and complete payment.
View your instance
After successful payment, click Back to Console or go directly to the RDS instance list. Select your region at the top of the page to view your new instance. Instance creation takes 1–10 minutes. When the instance status changes to Running, the instance is ready.
NoteThere may be a delay between successful payment and the instance appearing in the console. If you don’t see your instance immediately, wait a moment and refresh the console.
2. Create a database
Go to the RDS instance list. Select your region at the top, then click the target instance ID. In this tutorial, select the RDS instance you created in the previous step and its region.
In the navigation pane on the left, click Databases, then click the Create Database button to open the Create Database tab.
Set the parameters:
In this tutorial, set Database Name to
db_test1and Supported Character Set to utf8, then click Create.To store 4-byte wide characters (such as emojis or rare Chinese characters), use the utf8mb4 character set.
A privileged account has full permissions on all databases by default and does not appear in the authorized account dropdown.
You can view your new database on the Databases page.
3. Create an account
In the instance list, click the instance ID. In the navigation pane on the left, click Accounts, then click Create Account to open the Create Account tab.
Set account parameters: In this tutorial, set Database Account to
dbuserand select Privileged Account for Account Type.Enter a New Password and Confirm Password, then click Ok to finish creating the account.
NoteIf account creation fails, check for issues such as duplicate account names, too-frequent creation attempts, or an existing privileged account. Fix the issue and try again.
Refresh the Accounts page to view your new privileged account.
RDS MySQL supports Standard Account and Privileged Account. Their differences are:
Privileged account: The highest-permission account in ApsaraDB RDS MySQL (RDS MySQL does not support root accounts). It has full permissions on all databases in the instance. You can create it in the console or via API. Each instance allows only one privileged account.
Standard account: Has limited permissions on authorized databases. You can create it via the console, API, or SQL commands. To create a standard account using SQL (for example,
CREATE USER), first create a privileged account, then log on to the database using that account and run the command.
What to do next
FAQ
Instance queries
Q1: How do I check the total number of RDS instances under my Alibaba Cloud account and whether any are running?
Log on to the RDS Overview page to see the total number of RDS instances for all database engines under your Alibaba Cloud account. This page also shows regional distribution and the number of running instances per region.
It also displays counts of instances that are expiring soon or expired, with detailed status breakdowns by region in the table below.
Q2: Why don’t I see my instance in the instance list after creation?
Possible cause
Description
Suggestion
Incorrect region
The region you’re viewing differs from the region selected during instance creation.
Switch regions in the upper-left corner of the page.
Insufficient resources in the zone
Resource shortages in the zone caused creation to fail.
If creation fails, you’ll see a refund in your order list.
Choose a different zone and retry.
RAM policy blocks unencrypted RDS instance creation
A RAM policy prevents RAM users from creating unencrypted RDS instances.
A RAM user tried to create an instance with Premium Local SSDs, which failed because disk encryption cannot be enabled during creation for these instances.
A RAM user tried to create a cloud disk instance without enabling disk encryption, which failed.
For more information, see Restrict RAM user permissions using RAM policies.
When creating the instance, choose cloud disk as the storage type, enable disk encryption, set a key, and retry.
Accounts and Permissions
Q1: Can I manage accounts with finer granularity—for example, restrict source IP addresses or limit table access?
See Allow an account to access a database only from specific IP addresses or Restrict an account to specific tables, views, or fields.
Q2: Does RDS provide a root account or super privileges?
RDS does not provide a root account or any account with super privileges. This prevents accidental operations that could cause irreversible data loss or leaks.
References
Create an RDS instance using the API: Create an RDS instance
To create other instance types, see:
To create databases and accounts for other engines, see: