×
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.

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:

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

2

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:

3

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:

4

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

5

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:

6

Select "instances" then "create instance":

7
8

On the basic configuration page, make the appropriate selections that best suit your needs:
9
10
On the instance configuration page, ensure you select the correct VPC and Vswitch you want the instance to be deployed:

11
Confirm your order and pay to startup the instance:

12

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:

13
Select the "Database Connection" on the left pane:

14
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:

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

16
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:

17
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:

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

19
Launch the MySQL workbench and click on add new connection:

20
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:

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

22
23

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.

0 0 0
Share on

Alibaba Cloud Community

1,044 posts | 257 followers

You may also like

Comments

Alibaba Cloud Community

1,044 posts | 257 followers

Related Products