Connecting Alibaba Cloud ApsaraDB RDS to MySQL Workbench
By Shedrack Okpara
What Is ApsaraDB RDS
ApsaraDB RDS is an Alibaba Cloud-based online database service that is robust, dependable, and scalable. It is built on top of the Apsara Distributed File System and high-performance SSDs. MySQL, SQL Server, PostgreSQL, and MariaDB TX are all supported by ApsaraDB RDS. ApsaraDB RDS offers a range of disaster recovery, backup, restore, monitoring, and migration tools to make database management easier. These cloud-hosted databases are around two-thirds less expensive than self-managed databases on Elastic Compute Service (ECS) instances, and about nine-tenths less expensive than self-managed databases on third-party database servers.
What Is MySQL Workbench
MySQL Workbench was designed with database architects, developers, and DBAs in mind, it offers a single visual tool. MySQL Workbench includes data modeling, SQL development, server configuration, user administration, backup, and other administration utilities. MySQL Workbench is a database management system that runs on Windows, Linux, and Mac OS X.
Requirements
For this exercise, you will need:
- An Alibaba Cloud account with a valid payment method
- Download and install MySQL Workbench on your local PC
Downloading and Installing MySQL Bench on Your PC
Task 1: Downloading MySQL Workbench
On your browser search for "MySQL workbench" and click on the first search result:

On the next page, select your preferred operating system from the drop-down and click download:

You will be asked to Login or Sign Up. This is not necessary, if you do not have an Oracle account you can click on "No thanks, just start my download" at the bottom to proceed:

Task 2: Installing MySQL Workbench
Once the download is complete, launch the installer and proceed with the installation, you can leave all settings as default and select next to the end:

After installation you can start up the application, it should look like the screenshot below:

Creating and Connecting ApsaraDB RDS Instance to MySQL Workbench
Task 1: Creating an ApsaraDB RDS Instance
Login to your Alibaba Cloud console, search and select ApsaraDB RDS:

Select "instances" then "create instance":


On the basic configuration page, make the appropriate selections that best suit your needs:

On the instance configuration page, ensure you select the correct VPC and Vswitch you want the instance to be deployed:

Confirm your order and pay to startup the instance:

Task 2: Connect RDS to MySQL Workbench
After the creation of the RDS instance, go to the ApsaraDB RDS console and select the newly created RDS instance:

Select the "Database Connection" on the left pane:

Select "apply for public endpoint". Note, this step is important if you intend to connect via the public network, which is what we are doing in this case:

Click on "configure whitelist" which is beside the Public endpoint:

On the next page, you'll need to create a whitelist, which is where you decide which IP addresses are allowed to connect to your databases. You can limit access to a single IP address, known IP addresses, or everyone (which we strongly advise against), but for the sake of this tutorial, let's configure everyone:

We also have to create an account that we can use to access DB, on the instance page select "Accounts" and create a privileged account:

Go back to the "Database Connection" page and copy the "Public Endpoint":

Launch the MySQL workbench and click on add new connection:

Input your desired connection name, under Hostname, paste the Public Endpoint you copied earlier, also enter the username you created earlier and click on "store in vault" to insert the password then select OK to add connection:

You are all done, now double click on the connection to connect to your DB on Alibaba Cloud:


Conclusion
This is a great technique to manage your cloud databases since it allows you to limit the number of people who have access to your Alibaba Cloud account. It's also great for developers who are already familiar with the technology.
Read previous post:
Transcribe Speech to Text in Real-Time Using Alibaba Cloud Intelligent Speech Interaction
Read next post:
How to Manage Application Secrets Using Alibaba Cloud Key Management Service
-
-
Alibaba Cloud Community
1,601 posts | 526 followers
Follow
Comments
-
-
Alibaba Cloud Community
1,601 posts | 526 followers
Follow
Related Products
-
PolarDB for MySQL
Alibaba Cloud PolarDB for MySQL is a cloud-native relational database service 100% compatible with MySQL.
Learn More -
Database for FinTech Solution
Leverage cloud-native database solutions dedicated for FinTech.
Learn More -
Database Migration Solution
Migrating to fully managed cloud databases brings a host of benefits including scalability, reliability, and cost efficiency.
Learn More -
Oracle Database Migration Solution
Migrate your legacy Oracle databases to Alibaba Cloud to save on long-term costs and take advantage of improved scalability, reliability, robust security, high performance, and cloud-native features.
Learn More
More Posts by Alibaba Cloud Community
- QoderWake: Digital Workers Take the Initiative — No Need to @ Every Time
- What Is Model Thinking Effort? Should You Choose Low, High, or Maximum?
- High-Risk PHP and Node.js Vulnerabilities: A Scan Costs Pennies. A Miss Could Cost a Fortune.
- Alibaba Unveils Qwen4-Max: New AI Teammate for Work, Creativity, and Discovery
- Alibaba Brings Cloud and AI to the First Youth Olympic Games in Africa
- Introducing Qoder Lite: Start creating with Qoder for $10 a month
- Qoder Fast: Keeping Pace with Your Thoughts
- Qoder Cloud Agents: An Evaluation Loop for Reliable, Continuous Agent Improvement
- Making Fast Mode Faster
- Your Database's Biggest User Is Now an Agent — and That Changes Security