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
On this page
Help Center/ Data Replication Service/ Troubleshooting/ Solutions to Failed Check Items/ Networks/ Checking Whether the Source Database Is Connected

Checking Whether the Source Database Is Connected

Updated on 2024-11-30 GMT+08:00

In the pre-check phase, DRS checks the connectivity and accuracy of the source database IP address, port, username, and password.

Failure Cause

  • The username or password is incorrect.
  • The port cannot be accessed.
  • The database account does not allow remote connection.
  • The connection fails.

Handling Suggestion

  • Check whether the username and password entered during the DRS connection test are correct. Enter the correct database username and password and perform the pre-check again.
  • If the port entered during the connection test cannot be accessed, check whether the port exists. If the port is correct, check whether the firewall is enabled.
  • If the source database is PostgreSQL, and the database configuration file pg_hba.conf does not contain the database account configuration, grant the remote connection permission for the account.

    Add the following to pg_hba.conf, and restart the database for the modification to take effect:

    host all xxx(dbuser) 0.0.0.0/0 method

    After the task is complete, delete this record and restart the database again.

  • Before data migration, ensure that the network has been prepared well and security rules have been configured. If the connection fails, perform the following operations to check whether the network configuration is correct:
    • Public network
      1. Ensure that public accessibility is enabled for the database.
      2. Ensure that the security rules of the database are correctly configured.

        You need to add the EIP of the DRS instance to the whitelist of the database to ensure that the DRS instance can access the database. The IP address displayed on the Configure Source and Destination Databases page is the EIP of the DRS instance.

      3. Ensure that the firewall settings are correct.

        The firewall of the data center must allow access from the EIP of the DRS instance so that the DRS instance can access the database.

        Inbound access: Allows access from the EIP of the DRS instance to the database listening port.

        Outbound access: Allows data transmission from the database listening port to the EIP of the DRS instance.

    • VPC
      1. Ensure that the database security group is correctly configured.

        View inbound rules to allow traffic from the private IP address of the DRS instance to the database listening port. The IP address displayed on the Configure Source and Destination Databases page is the private IP address of the DRS instance.

      2. Ensure that the database network ACL is correctly configured.

        By default, a VPC does not have a network ACL. If you have configured a network ACL, add an inbound rule.

    • VPN or Direct Connect
      1. Ensure that the database VPN or Direct Connect is correctly configured.
      2. Ensure that the security rules of the database are correctly configured.

        You need to add the private IP address of the DRS instance to the whitelist of the database to ensure that the DRS instance can access the database. The IP address displayed on the Configure Source and Destination Databases page is the private IP address of the DRS instance.

      For more details about network settings, see Overview of Preparations.

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