Checking Whether the Source Database Is Connected

MySQL Migration

Table 1 Checking whether the source database is connected

Check Item

Whether the source database is connected

Description

Check the connectivity and accuracy of the IP address, port number, username, and password of the source database.

Failure Cause and Handling Suggestion

Failure cause: The connection fails.

Handling suggestion: Configure the network by referring to "Network Types" in Real-Time Migration.

Failure cause: Incorrect username or password

Handling suggestion: Check whether the input username and password for the connection test are correct.

Failure cause: The database account does not allow remote connections.

Handling suggestion:

Run the following command to create a user that allows remote connections. After the migration, delete this user.

CREATE USER 'Account' @ '%' IDENTIFIED BY 'Password'

Failure cause: The SSL CA root certificate is invalid.

Handling suggestion: Upload a valid SSL CA certificate.

Failure cause: No SSL CA root certificate exists.

Handling suggestion: Contact technical support.

Failure cause: The database is unavailable.

Handling suggestion: Contact technical support.

MongoDB Migration

Table 2 Checking whether the source database is connected

Check Item

Whether the source database is connected

Description

Check the connectivity and accuracy of the IP address, port number, username, and password of the source database.

Failure Cause and Handling Suggestion

Failure cause: The connection fails.

Handling suggestion: Configure the network by referring to "Network Types" in Real-Time Migration.

Failure cause: The username, password, or authentication database of the source database is incorrect.

Handling suggestion: Check that the input username, password, and authentication database for the connection test are correct.

Failure cause: The database is unavailable.

Handling suggestion: Contact technical support.

Failure cause: An internal error occurs.

Handling suggestion: Contact technical support.

Failure cause: SSL connection parameters are not configured.

Handling suggestion: Contact technical support.

Failure cause: The source database cannot connect to the port of the replication instance.

Handling suggestion: Modify the firewall, security group, or ACL configurations of the source and destination databases to enable the source database to connect to the port of the replication instance.