Skip to content

ci: ZH translation 1753320860 #21457

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

Open
wants to merge 1 commit into
base: i18n-zh-release-8.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion latest_translation_commit.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"target":"release-8.5","sha":"0205ededf901476ea31dcd603f21ab9c9bed3f0d"}
{"target":"release-8.5","sha":"872a8b5331af541151fae53d0bf2e95e1dac475b"}
300 changes: 152 additions & 148 deletions tidb-cloud/import-csv-files-serverless.md

Large diffs are not rendered by default.

232 changes: 115 additions & 117 deletions tidb-cloud/import-csv-files.md

Large diffs are not rendered by default.

322 changes: 163 additions & 159 deletions tidb-cloud/import-parquet-files-serverless.md

Large diffs are not rendered by default.

236 changes: 117 additions & 119 deletions tidb-cloud/import-parquet-files.md

Large diffs are not rendered by default.

48 changes: 26 additions & 22 deletions tidb-cloud/import-sample-data-serverless.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
---
title: 导入示例数据到 TiDB Cloud Serverless
summary: 了解如何通过 UI 将示例数据导入到 TiDB Cloud Serverless。
title: Import Sample Data into TiDB Cloud Serverless
summary: 了解如何通过 UI 将示例数据导入 TiDB Cloud Serverless。
---

# 导入示例数据到 TiDB Cloud Serverless
# Import Sample Data into TiDB Cloud Serverless

本文介绍如何通过 UI 将示例数据导入到 TiDB Cloud Serverless。使用的示例数据是 Capital Bikeshare 的系统数据,根据 Capital Bikeshare 数据许可协议发布。在导入示例数据之前,你需要有一个 TiDB 集群。
本文档介绍如何通过 UI 将示例数据导入 TiDB Cloud Serverless。所使用的示例数据为 Capital Bikeshare 的系统数据,根据 Capital Bikeshare Data License Agreement 发布。在导入示例数据之前,你需要拥有一个 TiDB 集群。

> **注意:**
>
> TiDB Cloud Serverless 目前仅支持从 Amazon S3 导入示例数据。

1. 打开目标集群的**导入**页面。
1. 打开目标集群的 **Import** 页面。

1. 登录 [TiDB Cloud 控制台](https://tidbcloud.com/)并导航到项目的[**集群**](https://tidbcloud.com/project/clusters)页面。
1. 登录 [TiDB Cloud 控制台](https://tidbcloud.com/),并导航到你的项目的 [**Clusters**](https://tidbcloud.com/project/clusters) 页面。

> **提示:**
>
> 你可以使用左上角的组合框在组织、项目和集群之间切换。
> 你可以使用左上角的下拉框在组织、项目和集群之间切换。

2. 点击目标集群的名称进入其概览页面,然后在左侧导航栏中点击**数据** > **导入**。
2. 点击目标集群的名称进入其概览页面,然后在左侧导航栏点击 **Data** > **Import**。

2. 选择**从云存储导入数据**,然后点击 **Amazon S3**。
2. 点击 **Import data from Cloud Storage**。

3. 在**从 Amazon S3 导入数据**页面上,配置以下源数据信息
3. 在 **Import Data from Cloud Storage** 页面,填写以下信息

- **导入文件数量**:对于示例数据,选择**多个文件**。
- **包含架构文件**:对于示例数据,选择**是**。
- **数据格式**:选择 **SQL**。
- **文件夹 URI** 或**文件 URI**:输入示例数据 URI `s3://tidbcloud-sample-data/data-ingestion/`。
- **存储桶访问**:对于示例数据,你只能使用 Role ARN 访问其存储桶。对于你自己的数据,你可以使用 AWS 访问密钥或 Role ARN 访问你的存储桶。
- **AWS Role ARN**:输入 `arn:aws:iam::801626783489:role/import-sample-access`。
- **AWS 访问密钥**:对于示例数据,跳过此选项。
- **Storage Provider**:选择 **Amazon S3**。
- **Source Files URI**:输入示例数据的 URI `s3://tidbcloud-sample-data/data-ingestion/`。
- **Credential**:
- **AWS Role ARN**:输入 `arn:aws:iam::801626783489:role/import-sample-access`。
- **AWS Access Key**:对于示例数据,此项可跳过。

4. 点击**连接** > **开始导入**。
4. 点击 **Next**。

当数据导入进度显示**已完成**时,你已成功将示例数据和数据库架构导入到 TiDB Cloud Serverless 中的数据库。
5. 在 **Destination Mapping** 部分,保持选中 **Use [File naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** 选项,并选择 **SQL** 作为数据格式。

6. 点击 **Next**。

7. 查看扫描结果,检查发现的数据文件及其对应的目标表,然后点击 **Start Import**。

8. 当导入进度显示为 **Completed** 时,检查已导入的表。

连接到集群后,你可以在终端中运行一些查询来检查结果,例如:

1. 获取起始站为 "12th & U St NW" 的行程记录:
1. 获取起点为 "12th & U St NW" 的行程记录:

```sql
use bikeshare;
Expand All @@ -66,7 +70,7 @@ summary: 了解如何通过 UI 将示例数据导入到 TiDB Cloud Serverless。
+-----------------+---------------+---------------------+---------------------+--------------------+------------------+-------------------------------------------+----------------+-----------+------------+-----------+------------+---------------+
```

2. 获取电动自行车的行程记录
2. 获取使用 electric_bike 的行程记录

```sql
use bikeshare;
Expand All @@ -91,4 +95,4 @@ summary: 了解如何通过 UI 将示例数据导入到 TiDB Cloud Serverless。
| 211D449363FB7EE3 | electric_bike | 2021-01-15 17:22:02 | 2021-01-15 17:35:49 | 7th & K St NW | 31653 | 15th & East Capitol St NE | 31630 | 38.90216 | -77.0211 | 38.88 | 76.98357 | casual |
| CE667578A7291701 | electric_bike | 2021-01-15 16:55:12 | 2021-01-15 17:38:26 | East West Hwy & 16th St | 32056 | East West Hwy & Blair Mill Rd | 32019 | 38.995674 | -77.03868 | 38.990 | 77.02953 | casual |
+------------------+---------------+---------------------+---------------------+----------------------------------------+------------------+-------------------------------------------------------+----------------+-----------+------------+-----------+------------+---------------+
```
```
Loading