Help Center/ Relational Database Service_RDS for MySQL/ Getting Started/ Buying an RDS for MySQL Instance and Connecting to It Using a MySQL Client
Updated on 2025-09-15 GMT+08:00

Buying an RDS for MySQL Instance and Connecting to It Using a MySQL Client

After buying a DB instance, you can connect to it using a Linux ECS with a MySQL client installed over a private network. This section describes how to access a DB instance from an ECS using a standard MySQL client.

This section introduces how to connect to a DB instance with SSL disabled. To connect to a DB instance with SSL enabled, see Using MySQL CLI to Connect to an Instance Through a Private Network.

Operation Process

Process

Description

Preparations

Sign up for a HUAWEI ID, enable Huawei Cloud services, make sure you have a valid payment method configured, create IAM users, and grant them specific RDS permissions.

Step 1: Buy an RDS for MySQL DB Instance

Select required basic settings and additional options and buy an RDS for MySQL DB instance.

Step 2: Buy an ECS

If you want to connect to a DB instance using a MySQL client, you need to prepare a server, install the MySQL client on the server, and run the connection command.

Purchase a Linux ECS that is in the same region and VPC as your DB instance.

If you have purchased a Windows ECS, you can connect to the DB instance using MySQL-Front. For details, see Buying an RDS for MySQL Instance and Connecting to It Using MySQL-Front.

Step 3: Test Connectivity and Install a MySQL Client

Test the network connectivity between the ECS and the floating IP address and port of the DB instance, and install a MySQL client on the ECS.

Step 4: Connect to the DB Instance Using a CLI (Non-SSL Connection)

Use a command-line interface (CLI) to connect to the DB instance using the floating IP address and port.

Preparations

  1. Sign up for a HUAWEI ID and enable Huawei Cloud services.
  2. For fine-grained permissions management on Huawei Cloud resources, use Identity and Access Management (IAM) to create a user and user group and grant the user specific operation permissions. For details, see Creating a User and Granting Permissions.

Procedure

FAQ

Follow-up Operations

After logging in to the DB instance, you can create or migrate databases.