Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

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
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/ Distributed Database Middleware/ Getting Started/ Buying a DDM Instance and Connecting to a Schema Using a Windows System

Buying a DDM Instance and Connecting to a Schema Using a Windows System

Updated on 2024-08-05 GMT+08:00

You can connect to your DDM schema using a Windows ECS installed with a database client (for example, MySQL-Front) over a private network.

Step 1: Buy a DDM Instance

  1. Go to the Buy DDM Instance page.
  2. On the displayed page, configure the required parameters and click Next.
  3. Perform subsequent operations based on the billing mode you select:

    • If you select Pay-per-use, click Submit.
    • If you select Yearly/Monthly, click Pay Now.

  4. View the purchased instance.

    Figure 1 Instance successfully purchased

Step 2: Buy an RDS for MySQL DB Instance

  1. Go to the Buy DB Instance page.
  2. Configure the instance information and click Next.

    CAUTION:
    • A DDM instance can be associated with RDS for MySQL instances of versions 5.7 and 8.0.
    • The RDS for MySQL instance must be in the same VPC and subnet as your DDM instance. If they are not in the same subnet, configure routes to ensure network connectivity.
    • Specifications of associated RDS for MySQL instances should be greater than that of the DDM instance. Otherwise the performance will be affected.
    Figure 2 Network configurations

  3. Confirm the configurations and click Submit. Wait 1 to 3 minutes for the RDS instance to be created.
  4. View the purchased RDS instance.

Step 3: Create a DDM Account and Associate It with an RDS for MySQL Instance

  1. Log in to the DDM console.
  2. In the instance list, locate the required DDM instance and click its name.
  3. In the navigation pane, choose Accounts.
  4. On the displayed page, click Create Account.
  5. In the dialog box that is displayed, configure the account information and click OK.

    The value of the password validity period must be an integer ranging from 0 to 65535, in days. If the value is 0, the password never expires. If this parameter is not set, the password will always be valid.

  6. On the Instances page, locate the required DDM instance and click Create Schema in the Operation column.
  7. On the Create Schema page, set required parameters and click Next.
  8. On the displayed page, enter a database account with the required permissions and click Test Availability.

    Figure 3 Testing availability of data nodes

  9. After the test is successful, click Finish.
  10. View the associated RDS for MySQL instance.

    Figure 4 DB instance successfully associated

Step 2: Buy an ECS

  1. Go to the Buy ECS page.
  2. Configure basic settings and click Next: Configure Network. Keep the region and AZ of the ECS the same as those of the DDS instance to be connected.

    An image is an ECS template that contains an OS and applications. In this example, the Windows OS image is from the Marketplace and provided by third parties.

    Figure 5 Basic settings
    Figure 6 Selecting an image

  3. Configure the ECS network and click Next: Configure Advanced Settings.

    To download a MySQL client to the ECS, bind an EIP to the ECS. The ECS must be in the same VPC as the DDM instance for mutual communications.

    Figure 7 Network configuration
    Figure 8 Selecting an EIP

  4. Configure a password for the ECS and click Next: Confirm.

    Figure 9 Advanced settings

  5. Confirm the configurations and click Submit.

    Figure 10 Confirming the configurations

  6. View the purchased ECS.
  7. Check whether the ECS and RDS for MySQL instance are in the same region and VPC.

    • If yes, go to Step 5: Connect to a DDM Schema.
    • If they are not in the same region, buy another instance. 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 5: Connect to a DDM Schema

  1. 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. In the instance list, click the name of the target instance to go to the Basic Information page.
    3. In the Network Information area, obtain the private IP address and DDM service port.
    4. Open the cmd window on the ECS and check whether the floating IP address and database port of the DDM instance can be connected.

      telnet 192.*.*.* 5066

      • If yes, network connectivity is normal.
      • If no, check the security group rules.
        • If in the security group of the ECS, there is no outbound rule with Destination set to 0.0.0.0/0 and Protocol & Port set to All, add an outbound rule for the floating IP address and port of the DDM instance.
          Figure 11 ECS security group
        • If in the security group of the DDM 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.
    5. Open a browser, and download and install the MySQL-Front tool on the ECS (version 5.4 is used as an example).

  2. Use MySQL-Front to connect to the DDM schema.

    1. Start MySQL-Front.
    2. In the displayed dialog box, click New....
      Figure 12 Connection management
    3. Enter the information of the DDM schema to be connected and click Ok.
      Figure 13 Adding an account
      Table 1 Description

      Parameter

      Description

      Name

      Database connection task name. If you do not set this parameter, it will be the same as Host by default.

      Host

      Private IP address of the DDM schema.

      Port

      Port of the DDM schema. Set this parameter to 5066.

      User

      Username used for accessing the DDM instance. The default user is root.

      Password

      Password of the user who will access the DDM instance.

    4. In the displayed window, select the connection that you have created in 2.c and click Open. If the connection information is correct, the DDM instance is successfully connected.
      Figure 14 Opening a session

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback