Connect to an instance

You can connect to an RDS instance through a MySQL client. This document introduces the connection procedure by taking the MySQL-Front client as an example.

Background information

RDS for MySQL is fully compatible with MySQL, so the same method can be used to connect to the database. Here, we take the MySQL-Front client as an example to connect to an RDS instance. You can see this method when using other clients. When you connect to an RDS instance through clients, consider the following information on the selection of the connection address.

Use the intranet address when your client is installed on the ECS that is located in the same region and has the same network type with those of the RDS instance to be connected.

Use the Internet address for the other situations.

Procedure

Add the IP address accessing the RDS instance to RDS whitelist. For more information, see Set the whitelist.

Start MySQL-Front client.

In the Open Connection window, click New, as shown in the following figure.

Enter the information of the RDS instance to be connected, as shown in the following figure.

Parameters description:

Description Name: refers to the task name for MySQL-Front to connect each database. If you do not name this task, it is the same with the Host by default.

Host: refers to the connection address. If your client accesses the RDS instance through the intranet, enter the intranet address of the RDS instance. If your client accesses the RDS instance through the Internet, enter the Internet address of the RDS instance. The following procedure shows how to check the connection address and the port information of the RDS instance.

In the Basic Information area, you can find the Internet/intranet address and Internet/intranet port number of the instance, as shown in the following figure.

Port: refers to the port number of the RDS instance. If your application accesses the RDS instance by using the intranet, enter the intranet port number of the RDS instance. If your application accesses the RDS instance by using the Internet, enter the Internet port number of the RDS instance.

User: refers to the account name accessing the RDS instance.

Password: refers to the password corresponding to the account accessing the RDS instance.

Click OK.

In the Open Connection window, select the connection task that you created and click Open, as shown in the following figure. If the connection information is correct, the RDS instance gets connected successfully.