Community Blog Connecting Alibaba Cloud ApsaraDB RDS to MySQL Workbench

Connecting Alibaba Cloud ApsaraDB RDS to MySQL Workbench

This tutorial describes how to 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.


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:



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.

0 0 0
Share on

Alibaba Cloud Community

858 posts | 196 followers

You may also like