Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud: update a few steps for connection and migration #20370

Merged
merged 10 commits into from
Mar 4, 2025
2 changes: 1 addition & 1 deletion tidb-cloud/import-with-mysql-cli-serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Do the following to import data from an SQL file:
2. Use the following command to import data from the SQL file:

```bash
mysql --comments --connect-timeout 150 -u '<your_username>' -h <your_cluster_host> -P 4000 -D test --ssl-mode=VERIFY_IDENTITY --ssl-ca=<your_ca_path> -p <your_password> < product_data.sql
mysql --comments --connect-timeout 150 -u '<your_username>' -h <your_cluster_host> -P 4000 -D test --ssl-mode=VERIFY_IDENTITY --ssl-ca=<your_ca_path> -p<your_password> < product_data.sql
```

> **Note:**
Expand Down
10 changes: 7 additions & 3 deletions tidb-cloud/import-with-mysql-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Connect to your TiDB cluster.

1. Navigate to the [**Clusters**](https://tidbcloud.com/console/clusters) page, and then click the name of your target cluster to go to its overview page.

2. Click **Connect** in the upper-right corner. A connection dialog is displayed.
2. In the left navigation pane, click **Networking**.

3. Click **Allow Access from Anywhere**.
3. On the **Networking** page, click **Add IP Address** in the **IP Access List** area.

4. In the dialog, choose **Allow access from anywhere**, and then click **Confirm**.

5. In the upper-right corner, click **Connect** to open the dialog for connection information.

For more details about how to obtain the connection string, see [Connect to TiDB Cloud Dedicated via Public Connection](/tidb-cloud/connect-via-standard-connection.md).

Expand Down Expand Up @@ -59,7 +63,7 @@ Do the following to import data from an SQL file:
2. Use the following command to import data from the SQL file:

```bash
mysql --comments --connect-timeout 150 -u '<your_username>' -h <your_cluster_host> -P 4000 -D test --ssl-mode=VERIFY_IDENTITY --ssl-ca=<your_ca_path> -p <your_password> < product_data.sql
mysql --comments --connect-timeout 150 -u '<your_username>' -h <your_cluster_host> -P 4000 -D test --ssl-mode=VERIFY_IDENTITY --ssl-ca=<your_ca_path> -p<your_password> < product_data.sql
```

> **Note:**
Expand Down
9 changes: 8 additions & 1 deletion tidb-cloud/migrate-from-mysql-using-data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,14 @@ If your MySQL service is in a Google Cloud VPC, take the following steps:

### Enable binary logs

To perform incremental data migration, make sure you have enabled binary logs of the upstream database, and the binary logs have been kept for more than 24 hours.
To perform incremental data migration, make sure the following requirements are met:

- Binary logs are enabled for the upstream database.
- The binary logs are retained for at least 24 hours.
- The binlog format for the upstream database is set to `ROW`. If not, update the format to `ROW` as follows to avoid the [format error](/tidb-cloud/tidb-cloud-dm-precheck-and-troubleshooting.md#error-message-check-whether-mysql-binlog_format-is-row):

- MySQL: execute the `set global binlog_format=ROW;` statement.
- AWS Aurora (MySQL) or RDS MySQL: follow the instructions in [AWS documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithDBInstanceParamGroups.html) to create a new DB parameter group. Set the `binlog_format=row` parameter in the new DB parameter group, modify the instance to use the new DB parameter group, and then restart the instance to take effect.

## Step 1: Go to the **Data Migration** page

Expand Down
Loading