Help Center/ TaurusDB/ Getting Started/ Buying a DB Instance and Connecting to It Using the mysql Client
Updated on 2025-02-24 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 ID, enable Huawei Cloud services, make sure you have a valid payment method configured, create IAM users, and grant them specific TaurusDB permissions.

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 a command-line interface (CLI) to connect to the DB instance using the private IP address and port.

Preparations

  1. Before buying a DB instance, sign up for a HUAWEI ID and enable Huawei Cloud services.

    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