Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Relational Database Service/ Getting Started/ Getting Started with RDS for MySQL/ Buying a DB Instance and Connecting to It Using MySQL-Front

Buying a DB Instance and Connecting to It Using MySQL-Front

Updated on 2025-01-10 GMT+08:00

After buying a DB instance, you can connect to it using a Windows ECS with MySQL-Front installed over a private network.

MySQL-Front is a Windows front end for MySQL databases. It allows you to interact with MySQL databases through a GUI, including connecting to a database, running SQL commands, and managing tables and records.

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 use MySQL-Front to connect to a DB instance, you need to prepare a server, install MySQL-Front on the server, and log in to the instance.

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

If you have purchased a Linux ECS, you can connect to the DB instance using the mysql client. For details, see Buying a DB Instance and Connecting to It Using the mysql Client.

Step 3: Test Connectivity and Install MySQL-Front

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

Step 4: Connect to the DB Instance Using MySQL-Front

Use MySQL-Front 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. Before purchasing DB instances, ensure that your account balance is sufficient. Top up your account if required.
  3. 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 Permissions.

Step 1: Buy an RDS for MySQL DB Instance

  1. Go to the Buy DB Instance page.
  2. On the Quick Config page, set basic parameters.
    NOTE:

    Only mandatory parameters are provided on the Quick Config page. If the available parameters do not match your workloads, try Custom Config.

    The following parameter settings are only for reference.

    Figure 1 Basic Settings

    Parameter

    Example Value

    Description

    Billing Mode

    Pay-per-use

    The billing mode of an instance.

    • Yearly/Monthly: A prepaid billing mode in which you pay for resources before using it. Bills are settled based on the subscription period. The longer the subscription, the bigger the discount. This mode is a good option for long-term, stable services.
    • Pay-per-use: A postpaid billing mode. You pay as you go and just pay for what you use. The DB instance usage is calculated by the second but billed every hour. This mode allows you to adjust resource usage easily. You neither need to prepare for resources in advance, nor end up with excessive or insufficient preset resources.

    Region

    CN-Hong Kong

    The region where your resources are located.

    NOTE:

    Products in different regions cannot communicate with each other through a private network. After a DB instance is created, the region cannot be changed. Therefore, exercise caution when selecting a region.

    DB Engine Version

    8.0

    The database version.

    DB Instance Type

    Primary/Standby

    The architecture type of an instance.

    Primary/Standby: An HA architecture. In a primary/standby pair, each instance has the same instance class. When a primary instance is being created, a standby instance is provisioned along with it to provide data redundancy. The standby instance is invisible to you after being created.

    Instance Class

    General-purpose | 2U | 4G

    The vCPU and memory of an instance.

    Storage

    Cloud SSD | 100GB

    The storage space of an instance.

    It contains the system overhead required for inodes, reserved blocks, and database operation.

    Disk Encryption

    Disable

    Enabling disk encryption improves data security, but slightly affects the read and write performance of the database.

    If a shared KMS key is used, the corresponding CTS events are createdatakey and decrydatakey. Only the key owner can receive the events.

  3. Complete advanced configurations.
    Figure 2 Additional Options

    Parameter

    Example Value

    Description

    VPC

    vpc-default

    The virtual network in which your instance is located. A VPC can isolate networks for different workloads.

    If no VPC is available, click Create VPC. After a VPC is created, click . For details, see Creating a VPC and Subnet.

    Subnet

    subnet-default

    A subnet provides dedicated network resources that are logically isolated from other networks for network security.

    Security Group

    default

    It can enhance security by controlling access to RDS for MySQL from other services.

    Enterprise Project

    default

    If your account has been associated with an enterprise project, select the target project from the Enterprise Project drop-down list.

    For more information about enterprise projects, see Enterprise Management User Guide.

    Table Name

    Case insensitive

    Whether table names are case sensitive. Restoration may fail if the case sensitivity settings of table names on the source and target instances are different.

    The case sensitivity of table names for created RDS for MySQL 8.0 instances cannot be changed.

    Quantity

    1

    The number of instances to be created in a batch.

  4. Click Buy.
  5. Check the purchased DB instance.
    Figure 3 Instance successfully purchased

Step 2: Buy an ECS

  1. Go to the Elastic Cloud Server console.
  2. Check whether there is a Windows ECS.
    • If yes, go to 3.
    • If no, purchase an ECS and select Windows as its OS.

      To download MySQL-Front to the ECS, bind an EIP to the ECS. The ECS must be in the same region, VPC, and security group as the RDS for MySQL DB instance for mutual communications.

      For details about how to purchase a Windows ECS, see Purchasing a Custom ECS in Elastic Cloud Server User Guide.

    • If there is only a Linux ECS, you can use the mysql client to connect to the DB instance. For details, see Buying a DB Instance and Connecting to It Using the mysql Client.
    Figure 4 ECS
  3. Check whether the ECS and RDS for MySQL instance are in the same region and VPC.

    Figure 5 Overview
    • If they are not in the same region, purchase another ECS. The ECS and DB instance in different regions cannot communicate with each other. To reduce network latency, deploy your DB instance in the region nearest to your workloads.
    • If the ECS and DB instance are in different VPCs, change the VPC of the ECS to that of the DB instance. For details, see Changing a VPC.

Step 3: Test Connectivity and Install MySQL-Front

  1. Log in to the ECS. For details, see Login Using VNC in the Elastic Cloud Server User Guide.
  2. On the Instances page of the RDS console, click the DB instance name.
  3. Choose Connectivity & Security from the navigation pane. In the Connection Information area, obtain the floating IP address and database port of the DB instance.
    Figure 6 Connection information
  4. Open the cmd window on the ECS and check whether the floating IP address and database port of the DB instance can be connected.

    telnet 192.168.6.144 3306

    • If yes, network connectivity is normal.
    • If no, check the security group rules.
      • Check the outbound rules of the ECS security group. By default, all outgoing network traffic is allowed.
        If not, add an outbound rule for the floating IP address and port of the DB instance.
        Figure 7 ECS security group
      • If in the security group of the DB instance, there is no inbound rule allowing the access from the private IP address and port of the ECS, add an inbound rule for the private IP address and port of the ECS. For details, see Configuring a Security Group Rule.
  5. Open a browser, and download and install the MySQL-Front tool on the ECS (version 5.4 is used as an example).

Step 4: Connect to the DB Instance Using MySQL-Front

  1. Start MySQL-Front.
  2. In the displayed dialog box, click New.
    Figure 8 Connection management
  3. Enter the information of the DB instance to be connected and click Ok.
    Figure 9 Adding an account
    Table 1 Parameter description

    Parameter

    Description

    Name

    Name of the database connection task. If you do not specify this parameter, it will be the same as that configured for Host by default.

    Host

    Floating IP address obtained in 3.

    Port

    Database port obtained in 3. The default value is 3306.

    User

    Name of the user who will access the DB instance. The default user is root.

    Password

    Password of the account for accessing the DB instance.

  4. In the displayed window, select the connection that you have created in 3 and click Open. If the connection information is correct, the DB instance will be connected.
    Figure 10 Opening a session

Follow-up Operations

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

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback