Help Center/ TaurusDB/ Getting Started/ Buying a DB Instance and Connecting to It Using the mysql Client
Updated on 2026-09-14 GMT+08:00

Buying a DB Instance and Connecting to It Using the mysql Client

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

Operation Process

Process

Description

Preparations

Sign up for a Huawei Cloud Account, ensure that there is a valid payment method configured, and implement fine-grained permissions management on TaurusDB.

Step 1: Buy a DB Instance

Configure information required for instance creation.

Step 2: Buy an ECS

If you want to use the mysql client to connect to a DB instance, 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 a DB Instance and Connecting to It Using MySQL-Front.

Step 3: Test Connectivity and Install the mysql Client

Test the network connectivity between the ECS and the private IP address and port of the DB instance, and install the mysql client on the ECS.

Step 4: Connect to the DB Instance Using the mysql Client

Use the mysql client to connect to the DB instance through the private IP address and port.

Preparations

  1. Before buying a TaurusDB instance, sign up for a Huawei Cloud account.

    If you have enabled Huawei Cloud services, skip this step.

  2. For fine-grained permissions management on Huawei Cloud resources, use Identity and Access Management (IAM) to create a user or user group and grant it specific operation permissions. For details, see Creating a User and Granting TaurusDB Permissions.

Procedure