From 62693002d149d5a873c01e9afbf2bbb8f5d8503c Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Tue, 10 Sep 2024 16:53:53 +0800 Subject: [PATCH 1/2] This is an automated cherry-pick of #18520 Signed-off-by: ti-chi-bot --- TOC.md | 2 +- develop/dev-guide-build-cluster-in-cloud.md | 24 +++++++++------ develop/dev-guide-create-database.md | 2 +- develop/dev-guide-create-secondary-indexes.md | 2 +- develop/dev-guide-create-table.md | 4 +-- develop/dev-guide-delete-data.md | 2 +- develop/dev-guide-gui-mysql-workbench.md | 30 +++++++++---------- develop/dev-guide-gui-navicat.md | 26 ++++++++-------- develop/dev-guide-insert-data.md | 2 +- develop/dev-guide-proxysql-integration.md | 22 +++++++------- ...dev-guide-sample-application-aws-lambda.md | 10 +++---- ...ev-guide-sample-application-golang-gorm.md | 16 +++++----- ...de-sample-application-golang-sql-driver.md | 16 +++++----- ...guide-sample-application-java-hibernate.md | 14 ++++----- .../dev-guide-sample-application-java-jdbc.md | 14 ++++----- ...v-guide-sample-application-java-mybatis.md | 14 ++++----- ...ide-sample-application-java-spring-boot.md | 14 ++++----- .../dev-guide-sample-application-nextjs.md | 8 ++--- ...-guide-sample-application-nodejs-mysql2.md | 18 +++++------ ...guide-sample-application-nodejs-mysqljs.md | 20 ++++++------- ...-guide-sample-application-nodejs-prisma.md | 16 +++++----- ...ide-sample-application-nodejs-sequelize.md | 12 ++++---- ...guide-sample-application-nodejs-typeorm.md | 20 ++++++------- ...-guide-sample-application-python-django.md | 12 ++++---- ...mple-application-python-mysql-connector.md | 12 ++++---- ...e-sample-application-python-mysqlclient.md | 14 ++++----- ...-guide-sample-application-python-peewee.md | 12 ++++---- ...guide-sample-application-python-pymysql.md | 12 ++++---- ...de-sample-application-python-sqlalchemy.md | 14 ++++----- ...ev-guide-sample-application-ruby-mysql2.md | 14 ++++----- ...dev-guide-sample-application-ruby-rails.md | 14 ++++----- develop/dev-guide-tidb-crud-sql.md | 2 +- develop/dev-guide-update-data.md | 2 +- releases/release-7.0.0.md | 2 +- releases/release-7.1.0.md | 2 +- releases/release-7.5.0.md | 2 +- releases/release-8.1.0.md | 2 +- tidb-resource-control.md | 2 +- 38 files changed, 216 insertions(+), 210 deletions(-) diff --git a/TOC.md b/TOC.md index 09b5c60a92c0..1b1ba5784ef9 100644 --- a/TOC.md +++ b/TOC.md @@ -18,7 +18,7 @@ - 应用开发 - [概览](/develop/dev-guide-overview.md) - 快速开始 - - [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md) + - [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md) - [使用 TiDB 的增删改查 SQL](/develop/dev-guide-tidb-crud-sql.md) - 示例程序 - Java diff --git a/develop/dev-guide-build-cluster-in-cloud.md b/develop/dev-guide-build-cluster-in-cloud.md index a355dfede133..069e3ca6d57f 100644 --- a/develop/dev-guide-build-cluster-in-cloud.md +++ b/develop/dev-guide-build-cluster-in-cloud.md @@ -1,29 +1,35 @@ --- +<<<<<<< HEAD title: 使用 TiDB Serverless 构建 TiDB 集群 summary: 使用 TiDB Serverless 构建 TiDB 集群,并连接 TiDB Serverless 集群。 +======= +title: 使用 TiDB Cloud Serverless 构建 TiDB 集群 +summary: 使用 TiDB Cloud Serverless 构建 TiDB 集群,并连接 TiDB Cloud Serverless 集群。 +aliases: ['/zh/tidb/dev/build-cluster-in-cloud'] +>>>>>>> 476afb307b (*: update TiDB product names (#18520)) --- -# 使用 TiDB Serverless 构建 TiDB 集群 +# 使用 TiDB Cloud Serverless 构建 TiDB 集群 -本文将介绍如何以最快的方式开始使用 TiDB。你将创建并启动一个 [TiDB Serverless](https://www.pingcap.com/tidb-serverless/) 集群,使用 TiDB SQL 客户端,插入数据。随后将从示例程序读取出数据。 +本文将介绍如何以最快的方式开始使用 TiDB。你将创建并启动一个 [TiDB Cloud Serverless](https://www.pingcap.com/tidb-serverless/) 集群,使用 TiDB SQL 客户端,插入数据。随后将从示例程序读取出数据。 若你需要在本地计算机上启动 TiDB,请参阅[本地启动 TiDB](/quick-start-with-tidb.md)。 -## 第 1 步:创建 TiDB Serverless 集群 +## 第 1 步:创建 TiDB Cloud Serverless 集群 1. 如果你还未拥有 TiDB Cloud 账号,请先在此[注册](https://tidbcloud.com/free-trial)。 2. 使用你的 TiDB Cloud 账号[登录](https://tidbcloud.com/)。 登录后,默认进入 [**Clusters**](https://tidbcloud.com/console/clusters) 页面。 -3. 对于新注册的用户,TiDB Cloud 会自动为你创建一个 TiDB Serverless 集群 `Cluster0`。你可以使用这个默认集群进行后续操作,也可以自行创建一个新的 TiDB Serverless 集群。 +3. 对于新注册的用户,TiDB Cloud 会自动为你创建一个 TiDB Cloud Serverless 集群 `Cluster0`。你可以使用这个默认集群进行后续操作,也可以自行创建一个新的 TiDB Cloud Serverless 集群。 - 如果你想创建一个新的 TiDB Serverless 集群,请进行以下操作: + 如果你想创建一个新的 TiDB Cloud Serverless 集群,请进行以下操作: 1. 点击 **Create Cluster**。 - 2. **Create Cluster** 页面默认选择 **Serverless**。你可以根据需要修改集群名称、选择可用区,然后点击 **Create**。你的 TiDB Serverless 集群将于 30 秒后创建完毕。 + 2. **Create Cluster** 页面默认选择 **Serverless**。你可以根据需要修改集群名称、选择可用区,然后点击 **Create**。你的 TiDB Cloud Serverless 集群将于 30 秒后创建完毕。 4. 点击目标集群名称,进入集群概览页面,然后点击右上角的 **Connect** 按钮,弹出连接对话框。 @@ -33,7 +39,7 @@ summary: 使用 TiDB Serverless 构建 TiDB 集群,并连接 TiDB Serverless > **注意:** > - > 在连接到 [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless-beta) 集群时,你需要给用户名加上前缀并使用单引号包裹用户名。你可以在 [TiDB Cloud 用户名前缀](https://docs.pingcap.com/tidbcloud/select-cluster-tier#user-name-prefix) 中获得更多信息。 + > 在连接到 [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) 集群时,你需要给用户名加上前缀并使用单引号包裹用户名。你可以在 [TiDB Cloud Serverless 用户名前缀](https://docs.pingcap.com/tidbcloud/select-cluster-tier#user-name-prefix) 中获得更多信息。 ## 第 2 步:连接到集群 @@ -116,8 +122,8 @@ summary: 使用 TiDB Serverless 构建 TiDB 集群,并连接 TiDB Serverless > **注意:** > -> - 在连接 TiDB Serverless 集群时,[必须使用 TLS 连接](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-tier-clusters)。 -> - 如果你在连接时遇到问题,可阅读 [TiDB Serverless 集群安全连接](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-tier-clusters) 来获得更多信息。 +> - 在连接 TiDB Cloud Serverless 集群时,[必须使用 TLS 连接](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-tier-clusters)。 +> - 如果你在连接时遇到问题,可阅读 [TiDB Cloud Serverless 集群安全连接](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-tier-clusters) 来获得更多信息。 3. 填写密码,完成登录。 diff --git a/develop/dev-guide-create-database.md b/develop/dev-guide-create-database.md index d8ac375793ca..36a0777cd4ad 100644 --- a/develop/dev-guide-create-database.md +++ b/develop/dev-guide-create-database.md @@ -15,7 +15,7 @@ summary: 创建数据库的方法、规范及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md)。 ## 什么是数据库 diff --git a/develop/dev-guide-create-secondary-indexes.md b/develop/dev-guide-create-secondary-indexes.md index 0ab565fe115a..e85204734950 100644 --- a/develop/dev-guide-create-secondary-indexes.md +++ b/develop/dev-guide-create-secondary-indexes.md @@ -11,7 +11,7 @@ summary: 创建二级索引的方法、规范及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md)。 - [创建一个数据库](/develop/dev-guide-create-database.md)。 - [创建表](/develop/dev-guide-create-table.md)。 diff --git a/develop/dev-guide-create-table.md b/develop/dev-guide-create-table.md index a401a02c043d..4d92eed8443b 100644 --- a/develop/dev-guide-create-table.md +++ b/develop/dev-guide-create-table.md @@ -15,7 +15,7 @@ summary: 创建表的方法、规范及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md)。 - [创建一个数据库](/develop/dev-guide-create-database.md)。 @@ -264,7 +264,7 @@ ALTER TABLE `bookshop`.`ratings` SET TIFLASH REPLICA 1; > **注意:** > -> 如果你的集群,不包含 TiFlash 节点,此 SQL 语句将会报错:`1105 - the tiflash replica count: 1 should be less than the total tiflash server count: 0` 你可以[使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群) 来创建一个含有 TiFlash 的集群。 +> 如果你的集群,不包含 TiFlash 节点,此 SQL 语句将会报错:`1105 - the tiflash replica count: 1 should be less than the total tiflash server count: 0` 你可以[使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群) 来创建一个含有 TiFlash 的集群。 随后正常进行查询即可: diff --git a/develop/dev-guide-delete-data.md b/develop/dev-guide-delete-data.md index ff58ba54a0a5..88283b6f7509 100644 --- a/develop/dev-guide-delete-data.md +++ b/develop/dev-guide-delete-data.md @@ -11,7 +11,7 @@ summary: 删除数据、批量删除数据的方法、最佳实践及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md),并[创建数据库](/develop/dev-guide-create-database.md)、[创建表](/develop/dev-guide-create-table.md)、[创建二级索引](/develop/dev-guide-create-secondary-indexes.md)。 - 需先[插入数据](/develop/dev-guide-insert-data.md)才可删除。 diff --git a/develop/dev-guide-gui-mysql-workbench.md b/develop/dev-guide-gui-mysql-workbench.md index 9f3344fc4d96..a25577eccaf0 100644 --- a/develop/dev-guide-gui-mysql-workbench.md +++ b/develop/dev-guide-gui-mysql-workbench.md @@ -16,7 +16,7 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co **如果你还没有 TiDB 集群,可以按如下方式创建一个:** -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md),创建一个 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md),创建一个 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建一个本地集群。 ## 连接到 TiDB @@ -35,7 +35,7 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co 根据你选择的 TiDB 部署方式连接到 TiDB 集群。 -
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你目标集群的名字,进入集群的 **Overview** 页面。 @@ -64,20 +64,20 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co - **Hostname**:输入从 TiDB Cloud 连接对话框中的得到的 `HOST` 参数。 - **Port**:输入从 TiDB Cloud 连接对话框中的得到的 `PORT` 参数。 - **Username**:输入从 TiDB Cloud 连接对话框中的得到的 `USERNAME` 参数。 - - **Password**:点击 **Store in Keychain ...** 或 **Store in Vault**,输入 TiDB Serverless 集群的密码,然后点击 **OK** 保存密码。 + - **Password**:点击 **Store in Keychain ...** 或 **Store in Vault**,输入 TiDB Cloud Serverless 集群的密码,然后点击 **OK** 保存密码。 - ![MySQL Workbench: store the password of TiDB Serverless in keychain](/media/develop/mysql-workbench-store-password-in-keychain.png) + ![MySQL Workbench: store the password of TiDB Cloud Serverless in keychain](/media/develop/mysql-workbench-store-password-in-keychain.png) 下图显示了连接参数的示例: - ![MySQL Workbench: configure connection settings for TiDB Serverless](/media/develop/mysql-workbench-connection-config-serverless-parameters.png) + ![MySQL Workbench: configure connection settings for TiDB Cloud Serverless](/media/develop/mysql-workbench-connection-config-serverless-parameters.png) -7. 点击 **Test Connection** 以验证与 TiDB Serverless 集群的连接。 +7. 点击 **Test Connection** 以验证与 TiDB Cloud Serverless 集群的连接。 8. 如果连接测试成功,你可以看到 **Successfully made the MySQL connection** 信息。点击 **OK** 保存连接配置。
-
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你目标集群的名字,进入集群的 **Overview** 页面。 @@ -99,20 +99,20 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co - **Hostname**: 输入从 TiDB Cloud 连接对话框中的得到的 `HOST` 参数。 - **Port**:输入从 TiDB Cloud 连接对话框中的得到的 `PORT` 参数。 - **Username**:输入从 TiDB Cloud 连接对话框中的得到的 `USERNAME` 参数。 - - **Password**:点击 **Store in Keychain ...**,输入 TiDB Dedicated 集群的密码,然后点击 **OK** 保存密码。 + - **Password**:点击 **Store in Keychain ...**,输入 TiDB Cloud Dedicated 集群的密码,然后点击 **OK** 保存密码。 - ![MySQL Workbench: store the password of TiDB Dedicated in keychain](/media/develop/mysql-workbench-store-dedicated-password-in-keychain.png) + ![MySQL Workbench: store the password of TiDB Cloud Dedicated in keychain](/media/develop/mysql-workbench-store-dedicated-password-in-keychain.png) 下图显示了连接参数的示例: - ![MySQL Workbench: configure connection settings for TiDB Dedicated](/media/develop/mysql-workbench-connection-config-dedicated-parameters.png) + ![MySQL Workbench: configure connection settings for TiDB Cloud Dedicated](/media/develop/mysql-workbench-connection-config-dedicated-parameters.png) -6. 点击 **Test Connection** 以验证与 TiDB Dedicated 集群的连接。 +6. 点击 **Test Connection** 以验证与 TiDB Cloud Dedicated 集群的连接。 7. 如果连接测试成功,你可以看到 **Successfully made the MySQL connection** 信息。点击 **OK** 保存连接配置。
-
+
1. 启动 MySQL Workbench,并点击 **MySQL Connections** 标题旁边的 **+**。 @@ -126,11 +126,11 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Workbench](https://www.mysql.co - **Username**:输入用于连接到 TiDB 的用户名。 - **Password**:点击 **Store in Keychain ...**,输入用于连接 TiDB 集群的密码,然后点击 **OK** 保存密码。 - ![MySQL Workbench: store the password of TiDB Self-Hosted in keychain](/media/develop/mysql-workbench-store-self-hosted-password-in-keychain.png) + ![MySQL Workbench: store the password of TiDB Self-Managed in keychain](/media/develop/mysql-workbench-store-self-hosted-password-in-keychain.png) 下图显示了连接参数的示例: - ![MySQL Workbench: configure connection settings for TiDB Self-Hosted](/media/develop/mysql-workbench-connection-config-self-hosted-parameters.png) + ![MySQL Workbench: configure connection settings for TiDB Self-Managed](/media/develop/mysql-workbench-connection-config-self-hosted-parameters.png) 3. 点击 **Test Connection** 以验证与本地部署 TiDB 集群的连接。 diff --git a/develop/dev-guide-gui-navicat.md b/develop/dev-guide-gui-navicat.md index 3a7d3754ce28..b66c3921309b 100644 --- a/develop/dev-guide-gui-navicat.md +++ b/develop/dev-guide-gui-navicat.md @@ -16,7 +16,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Navicat](https://www.navicat.com) 是 > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -28,7 +28,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Navicat](https://www.navicat.com) 是 **如果你还没有 TiDB 集群,可以按如下方式创建一个:** -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md),创建一个 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md),创建一个 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建一个本地集群。 ## 连接到 TiDB @@ -36,7 +36,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Navicat](https://www.navicat.com) 是 根据你选择的 TiDB 部署方式连接到 TiDB 集群。 -
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你目标集群的名字,进入集群的 **Overview** 页面。 @@ -65,20 +65,20 @@ TiDB 是一个兼容 MySQL 的数据库。[Navicat](https://www.navicat.com) 是 - **Host**:输入从 TiDB Cloud 连接对话框中的得到的 `HOST` 参数。 - **Port**:输入从 TiDB Cloud 连接对话框中的得到的 `PORT` 参数。 - **User Name**:输入从 TiDB Cloud 连接对话框中的得到的 `USERNAME` 参数。 - - **Password**:输入 TiDB Serverless 集群的密码。 + - **Password**:输入 TiDB Cloud Serverless 集群的密码。 - ![Navicat: configure connection general panel for TiDB Serverless](/media/develop/navicat-connection-config-serverless-general.png) + ![Navicat: configure connection general panel for TiDB Cloud Serverless](/media/develop/navicat-connection-config-serverless-general.png) 7. 点击 **SSL** 选项卡,选择 **Use SSL**,**Use authentication** 以及 **Verify server certificate against CA** 复选框。并在 **CA Certificate** 字段中填入从 TiDB Cloud 连接对话框中获取的 `CA` 文件路径。 - ![Navicat: configure connection SSL panel for TiDB Serverless](/media/develop/navicat-connection-config-serverless-ssl.png) + ![Navicat: configure connection SSL panel for TiDB Cloud Serverless](/media/develop/navicat-connection-config-serverless-ssl.png) -8. 点击 **Test Connection** 以验证与 TiDB Serverless 集群的连接。 +8. 点击 **Test Connection** 以验证与 TiDB Cloud Serverless 集群的连接。 9. 如果连接测试成功,你可以看到 **Connection Successful** 信息。点击 **Save** 完成连接配置。
-
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你目标集群的名字,进入集群的 **Overview** 页面。 @@ -102,20 +102,20 @@ TiDB 是一个兼容 MySQL 的数据库。[Navicat](https://www.navicat.com) 是 - **Host**: 输入从 TiDB Cloud 连接对话框中的得到的 `HOST` 参数。 - **Port**:输入从 TiDB Cloud 连接对话框中的得到的 `PORT` 参数。 - **User Name**: 输入从 TiDB Cloud 连接对话框中的得到的 `USERNAME` 参数。 - - **Password**:输入 TiDB Dedicated 集群的密码。 + - **Password**:输入 TiDB Cloud Dedicated 集群的密码。 - ![Navicat: configure connection general panel for TiDB Dedicated](/media/develop/navicat-connection-config-dedicated-general.png) + ![Navicat: configure connection general panel for TiDB Cloud Dedicated](/media/develop/navicat-connection-config-dedicated-general.png) 7. 点击 **SSL** 选项卡,选择 **Use SSL**,**Use authentication** 以及 **Verify server certificate against CA** 复选框。然后,在 **CA Certificate** 字段中选择第 4 步下载的 CA 文件。 - ![Navicat: configure connection SSL panel for TiDB Dedicated](/media/develop/navicat-connection-config-dedicated-ssl.jpg) + ![Navicat: configure connection SSL panel for TiDB Cloud Dedicated](/media/develop/navicat-connection-config-dedicated-ssl.jpg) -8. 点击 **Test Connection** 以验证与 TiDB Dedicated 集群的连接。 +8. 点击 **Test Connection** 以验证与 TiDB Cloud Dedicated 集群的连接。 9. 如果连接测试成功,你可以看到 **Connection Successful** 信息。点击 **Save** 完成连接配置。
-
+
1. 启动 Navicat for MySQL,点击左上角的 **Connection**,并从下拉列表中选择 **MySQL**。 diff --git a/develop/dev-guide-insert-data.md b/develop/dev-guide-insert-data.md index 2e6c561466e4..06038cf34ef0 100644 --- a/develop/dev-guide-insert-data.md +++ b/develop/dev-guide-insert-data.md @@ -13,7 +13,7 @@ summary: 插入数据、批量导入数据的方法、最佳实践及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md)。 - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md),并[创建数据库](/develop/dev-guide-create-database.md)、[创建表](/develop/dev-guide-create-table.md)、[创建二级索引](/develop/dev-guide-create-secondary-indexes.md)。 ## 插入行 diff --git a/develop/dev-guide-proxysql-integration.md b/develop/dev-guide-proxysql-integration.md index b1f269621e76..93f1b9d63cbe 100644 --- a/develop/dev-guide-proxysql-integration.md +++ b/develop/dev-guide-proxysql-integration.md @@ -119,11 +119,11 @@ systemctl start docker ### 选项 1: 集成 TiDB Cloud 与 ProxySQL -在这个集成中,你将使用 [ProxySQL Docker 镜像](https://hub.docker.com/r/proxysql/proxysql)以及 TiDB Serverless 集群。下面的步骤将在端口 `16033` 上设置 ProxySQL,请确保此端口可用。 +在这个集成中,你将使用 [ProxySQL Docker 镜像](https://hub.docker.com/r/proxysql/proxysql)以及 TiDB Cloud Serverless 集群。下面的步骤将在端口 `16033` 上设置 ProxySQL,请确保此端口可用。 -#### 步骤 1. 创建一个 TiDB Serverless 集群 +#### 步骤 1. 创建一个 TiDB Cloud Serverless 集群 -1. 参考[创建一个 TiDB Serverless 集群](https://docs.pingcap.com/tidbcloud/tidb-cloud-quickstart#step-1-create-a-tidb-cluster)文档。记住为集群设置的 root 密码。 +1. 参考[创建一个 TiDB Cloud Serverless 集群](https://docs.pingcap.com/tidbcloud/tidb-cloud-quickstart#step-1-create-a-tidb-cluster)文档。记住为集群设置的 root 密码。 2. 获取集群的 `hostname`、`port` 及 `username` 供后续使用。 1. 在 [Clusters](https://tidbcloud.com/console/clusters) 页面,点击你的集群名称,进入集群概览页面。 @@ -327,12 +327,12 @@ systemctl start docker > > 1. 使用集群的用户名和密码添加一个 ProxySQL 用户。 > 2. 将该用户分配给监控账户。 - > 3. 将你的 TiDB Serverless 集群添加到主机列表中。 - > 4. 在 ProxySQL 和 TiDB Serverless 集群之间启用安全连接。 + > 3. 将你的 TiDB Cloud Serverless 集群添加到主机列表中。 + > 4. 在 ProxySQL 和 TiDB Cloud Serverless 集群之间启用安全连接。 > > 为了更好地理解此处的配置流程,强烈建议查看 `proxysql-prepare.sql` 文件。关于 ProxySQL 配置的更多信息,参考 [ProxySQL 文档](https://proxysql.com/documentation/proxysql-configuration/)。 - 下面是一个输出示例。输出中显示集群的主机名,这意味着 ProxySQL 和 TiDB Serverless 集群之间的连接建立成功。 + 下面是一个输出示例。输出中显示集群的主机名,这意味着 ProxySQL 和 TiDB Cloud Serverless 集群之间的连接建立成功。 ``` *************************** 1. row *************************** @@ -388,7 +388,7 @@ systemctl start docker SELECT VERSION(); ``` - 如果输出了 TiDB 的版本信息,则表示你已经成功通过 ProxySQL 连接到 TiDB Serverless 集群。如需退出 MySQL 客户端,输入 `quit` 并按下 Enter 键。 + 如果输出了 TiDB 的版本信息,则表示你已经成功通过 ProxySQL 连接到 TiDB Cloud Serverless 集群。如需退出 MySQL 客户端,输入 `quit` 并按下 Enter 键。 > **注意:** > @@ -624,7 +624,7 @@ systemctl start docker ## 生产环境 -对于生产环境,建议直接使用 [TiDB Dedicated](https://www.pingcap.com/tidb-dedicated/) 以获得完全托管的体验。 +对于生产环境,建议直接使用 [TiDB Cloud Dedicated](https://www.pingcap.com/tidb-dedicated/) 以获得完全托管的体验。 ### 前提条件 @@ -636,9 +636,9 @@ systemctl start docker 关于 ProxySQL 支持的平台和版本要求的完整列表,见 [ProxySQL 文档](https://proxysql.com/documentation/installing-proxysql/)。 -#### 步骤 1. 创建一个 TiDB Dedicated 集群 +#### 步骤 1. 创建一个 TiDB Cloud Dedicated 集群 -具体步骤请参考[创建一个 TiDB Dedicated 集群](https://docs.pingcap.com/tidbcloud/create-tidb-cluster)。 +具体步骤请参考[创建一个 TiDB Cloud Dedicated 集群](https://docs.pingcap.com/tidbcloud/create-tidb-cluster)。 #### 步骤 2. 安装 ProxySQL @@ -688,7 +688,7 @@ systemctl start docker 执行以上命令后,系统将显示 `'ProxySQL Admin'` 提示。 -2. 你可以在当前 MySQL 命令行客户端中向 ProxySQL 添加一个或多个 TiDB 集群。例如,下面的语句将添加一个 TiDB Dedicated 集群。你需要用集群的 `Endpoint` 和 `Port` 替换 `` 和 ``(默认端口为 `4000`)。 +2. 你可以在当前 MySQL 命令行客户端中向 ProxySQL 添加一个或多个 TiDB 集群。例如,下面的语句将添加一个 TiDB Cloud Dedicated 集群。你需要用集群的 `Endpoint` 和 `Port` 替换 `` 和 ``(默认端口为 `4000`)。 ```sql INSERT INTO mysql_servers(hostgroup_id, hostname, port) diff --git a/develop/dev-guide-sample-application-aws-lambda.md b/develop/dev-guide-sample-application-aws-lambda.md index 5e7b51ce4dc4..4916d71c6134 100644 --- a/develop/dev-guide-sample-application-aws-lambda.md +++ b/develop/dev-guide-sample-application-aws-lambda.md @@ -16,7 +16,7 @@ TiDB 是一个兼容 MySQL 的数据库。[AWS Lambda 函数](https://aws.amazon > **Note** > -> 本文档适用于 TiDB Serverless 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless 和本地部署的 TiDB。 ## 前置需求 @@ -31,7 +31,7 @@ TiDB 是一个兼容 MySQL 的数据库。[AWS Lambda 函数](https://aws.amazon 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 如果你还没有 AWS 账户或用户,可以按照 [Lambda 入门](https://docs.aws.amazon.com/zh_cn/lambda/latest/dg/getting-started.html)文档中的步骤来创建它们。 @@ -67,9 +67,9 @@ npm install -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -340,7 +340,7 @@ console.log(rsh.affectedRows); - 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://github.com/sidorares/node-mysql2#using-prepared-statements)执行 SQL。 - 在不涉及大量复杂 SQL 语句的场景下,推荐使用 ORM 框架(例如:[Sequelize](https://sequelize.org/)、[TypeORM](https://typeorm.io/) 或 [Prisma](https://www.prisma.io/))来提升你的开发效率。 - 如需为你的应用程序构建一个 RESTful API,建议[将 AWS Lambda 与 Amazon API Gateway 结合使用](https://docs.aws.amazon.com/zh_cn/lambda/latest/dg/services-apigateway.html)。 -- 关于使用 TiDB Serverless 和 AWS Lambda 设计高性能应用程序的更多信息,可以参考[这篇博客](https://aws.amazon.com/blogs/apn/designing-high-performance-applications-using-serverless-tidb-cloud-and-aws-lambda/)。 +- 关于使用 TiDB Cloud Serverless 和 AWS Lambda 设计高性能应用程序的更多信息,可以参考[这篇博客](https://aws.amazon.com/blogs/apn/designing-high-performance-applications-using-serverless-tidb-cloud-and-aws-lambda/)。 ## 下一步 diff --git a/develop/dev-guide-sample-application-golang-gorm.md b/develop/dev-guide-sample-application-golang-gorm.md index 62ecb9c06698..7e81fdb4c37a 100644 --- a/develop/dev-guide-sample-application-golang-gorm.md +++ b/develop/dev-guide-sample-application-golang-gorm.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[GORM](https://gorm.io/index.html) 是 > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Go](https://go.dev/) **1.20** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -44,9 +44,9 @@ cd tidb-golang-gorm-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -86,15 +86,15 @@ cd tidb-golang-gorm-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 @@ -188,7 +188,7 @@ func createDB() *gorm.DB { } ``` -在使用该函数时,你需要将 `${tidb_host}`、`${tidb_port}`、`${tidb_user}`、`${tidb_password}`、`${tidb_db_name}` 等替换为你的 TiDB 集群的实际值。因为 TiDB Serverless 要求使用 TLS (SSL) connection,因此在连接到 TiDB Serverless 时 `${use_ssl}` 的值应为 `true`。 +在使用该函数时,你需要将 `${tidb_host}`、`${tidb_port}`、`${tidb_user}`、`${tidb_password}`、`${tidb_db_name}` 等替换为你的 TiDB 集群的实际值。因为 TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此在连接到 TiDB Cloud Serverless 时 `${use_ssl}` 的值应为 `true`。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-golang-sql-driver.md b/develop/dev-guide-sample-application-golang-sql-driver.md index e02cc8e26e21..1472bb5cb853 100644 --- a/develop/dev-guide-sample-application-golang-sql-driver.md +++ b/develop/dev-guide-sample-application-golang-sql-driver.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[Go-MySQL-Driver](https://github.com/g > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Go](https://go.dev/) **1.20** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -44,9 +44,9 @@ cd tidb-golang-sql-driver-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -86,15 +86,15 @@ cd tidb-golang-sql-driver-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 @@ -186,7 +186,7 @@ func openDB(driverName string, runnable func(db *sql.DB)) { } ``` -在使用该函数时,你需要将 `${tidb_host}`、`${tidb_port}`、`${tidb_user}`、`${tidb_password}`、`${tidb_db_name}` 等替换为你的 TiDB 集群的实际值。因为 TiDB Serverless 要求使用 TLS (SSL) connection,因此在连接到 TiDB Serverless 时 `${use_ssl}` 的值应为 `true`。 +在使用该函数时,你需要将 `${tidb_host}`、`${tidb_port}`、`${tidb_user}`、`${tidb_password}`、`${tidb_db_name}` 等替换为你的 TiDB 集群的实际值。因为 TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此在连接到 TiDB Cloud Serverless 时 `${use_ssl}` 的值应为 `true`。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-java-hibernate.md b/develop/dev-guide-sample-application-java-hibernate.md index 3483dd866d85..2526294dd202 100644 --- a/develop/dev-guide-sample-application-java-hibernate.md +++ b/develop/dev-guide-sample-application-java-hibernate.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Hibernate](https://hibernate.org/orm/ > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -23,7 +23,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Hibernate](https://hibernate.org/orm/ - [Maven](https://maven.apache.org/install.html) **3.8** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -45,9 +45,9 @@ cd tidb-java-hibernate-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -87,15 +87,15 @@ cd tidb-java-hibernate-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `env.sh` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-java-jdbc.md b/develop/dev-guide-sample-application-java-jdbc.md index fd143c8457a0..41500919de18 100644 --- a/develop/dev-guide-sample-application-java-jdbc.md +++ b/develop/dev-guide-sample-application-java-jdbc.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。JDBC 是 Java 的数据访问 API。[M > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -23,7 +23,7 @@ TiDB 是一个兼容 MySQL 的数据库。JDBC 是 Java 的数据访问 API。[M - [Maven](https://maven.apache.org/install.html) **3.8** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -45,9 +45,9 @@ cd tidb-java-jdbc-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -87,15 +87,15 @@ cd tidb-java-jdbc-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `env.sh` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-java-mybatis.md b/develop/dev-guide-sample-application-java-mybatis.md index 44a4247f10b3..4952e0329f35 100644 --- a/develop/dev-guide-sample-application-java-mybatis.md +++ b/develop/dev-guide-sample-application-java-mybatis.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[MyBatis](https://mybatis.org/mybatis- > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -23,7 +23,7 @@ TiDB 是一个兼容 MySQL 的数据库。[MyBatis](https://mybatis.org/mybatis- - [Maven](https://maven.apache.org/install.html) **3.8** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -45,9 +45,9 @@ cd tidb-java-mybatis-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -87,15 +87,15 @@ cd tidb-java-mybatis-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `env.sh` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-java-spring-boot.md b/develop/dev-guide-sample-application-java-spring-boot.md index 5b522d74de63..d46f2a8f65ac 100644 --- a/develop/dev-guide-sample-application-java-spring-boot.md +++ b/develop/dev-guide-sample-application-java-spring-boot.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Spring](https://spring.io/) 是当前 > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -23,7 +23,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Spring](https://spring.io/) 是当前 - [Maven](https://maven.apache.org/install.html) **3.8** 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -45,9 +45,9 @@ cd tidb-java-springboot-jpa-quickstart -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -87,15 +87,15 @@ cd tidb-java-springboot-jpa-quickstart 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,因此 `USE_SSL` 的值应为 `true`。 7. 保存 `env.sh` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-nextjs.md b/develop/dev-guide-sample-application-nextjs.md index 51ae650085f5..efd888218fd1 100644 --- a/develop/dev-guide-sample-application-nextjs.md +++ b/develop/dev-guide-sample-application-nextjs.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库,[mysql2](https://github.com/sidorares/ > **Note** > -> 本文档适用于 TiDB Serverless 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库,[mysql2](https://github.com/sidorares/ 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -61,9 +61,9 @@ npm install -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 diff --git a/develop/dev-guide-sample-application-nodejs-mysql2.md b/develop/dev-guide-sample-application-nodejs-mysql2.md index 992fe7c698cb..6eca75121725 100644 --- a/develop/dev-guide-sample-application-nodejs-mysql2.md +++ b/develop/dev-guide-sample-application-nodejs-mysql2.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[node-mysql2](https://github.com/sidor > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[node-mysql2](https://github.com/sidor 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -63,9 +63,9 @@ npm install mysql2 dotenv --save -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -101,15 +101,15 @@ npm install mysql2 dotenv --save > **Note** > - > 当你使用 Public Endpoint 连接 TiDB Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 + > 当你使用 Public Endpoint 连接 TiDB Cloud Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 3. 在连接对话框中,从 **Connection Type** 下拉列表中选择 **Public**,并点击 **CA cert** 下载 CA 文件。 @@ -137,7 +137,7 @@ npm install mysql2 dotenv --save > **Note** > - > 推荐在使用 Public Endpoint 连接 TiDB Dedicated 集群时,启用 TLS 连接。 + > 推荐在使用 Public Endpoint 连接 TiDB Cloud Dedicated 集群时,启用 TLS 连接。 > > 为了启用 TLS (SSL) 连接,将 `TIDB_ENABLE_SSL` 修改为 `true`,并使用 `TIDB_CA_PATH` 指定从连接对话框中下载的 CA 证书的文件路径。 @@ -235,7 +235,7 @@ void main(); > **Note** > -> 使用 Public Endpoint 连接 TiDB Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Serverless 信任。 +> 使用 Public Endpoint 连接 TiDB Cloud Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Cloud Serverless 信任。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-nodejs-mysqljs.md b/develop/dev-guide-sample-application-nodejs-mysqljs.md index 4a20a0195b22..300ceebef19a 100644 --- a/develop/dev-guide-sample-application-nodejs-mysqljs.md +++ b/develop/dev-guide-sample-application-nodejs-mysqljs.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[mysql.js](https://github.com/mysqljs/ > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[mysql.js](https://github.com/mysqljs/ 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -63,9 +63,9 @@ npm install mysql dotenv --save -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -98,18 +98,18 @@ npm install mysql dotenv --save TIDB_DATABASE='test' TIDB_ENABLE_SSL='true' ``` - + > **Note** > - > 当你使用 Public Endpoint 连接 TiDB Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 + > 当你使用 Public Endpoint 连接 TiDB Cloud Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 3. 在连接对话框中,从 **Connection Type** 下拉列表中选择 **Public**,并点击 **CA cert** 下载 CA 文件。 @@ -137,7 +137,7 @@ npm install mysql dotenv --save > **Note** > - > 推荐在使用 Public Endpoint 连接 TiDB Dedicated 集群时,启用 TLS 连接。 + > 推荐在使用 Public Endpoint 连接 TiDB Cloud Dedicated 集群时,启用 TLS 连接。 > > 为了启用 TLS (SSL) 连接,将 `TIDB_ENABLE_SSL` 修改为 `true`,并使用 `TIDB_CA_PATH` 指定从连接对话框中下载的 CA 证书的文件路径。 @@ -231,7 +231,7 @@ conn.end(); > **Note** > -> 使用 Public Endpoint 连接 TiDB Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Serverless 信任。 +> 使用 Public Endpoint 连接 TiDB Cloud Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Cloud Serverless 信任。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-nodejs-prisma.md b/develop/dev-guide-sample-application-nodejs-prisma.md index 4da90a1cd4f1..541178daed46 100644 --- a/develop/dev-guide-sample-application-nodejs-prisma.md +++ b/develop/dev-guide-sample-application-nodejs-prisma.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Prisma](https://www.prisma.io/) 是 > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Prisma](https://www.prisma.io/) 是 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -63,9 +63,9 @@ npm install prisma typescript ts-node @types/node --save-dev -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -96,7 +96,7 @@ npm install prisma typescript ts-node @types/node --save-dev > **Note** > - > 在使用 Public Endpoint 连接 TiDB Serverless 集群时,**必须**启用 TLS 连接,请将 `sslaccept` 参数设置为 `strict`。 + > 在使用 Public Endpoint 连接 TiDB Cloud Serverless 集群时,**必须**启用 TLS 连接,请将 `sslaccept` 参数设置为 `strict`。 7. 保存 `.env` 文件。 8. 在 `prisma/schema.prisma` 文件中,将 `provider` 修改为 `mysql`,并将 `url` 修改为 `env("DATABASE_URL")`: @@ -110,9 +110,9 @@ npm install prisma typescript ts-node @types/node --save-dev
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 3. 在连接对话框中,从 **Connection Type** 下拉列表中选择 **Public**,并点击 **CA cert** 下载 CA 文件。 @@ -134,7 +134,7 @@ npm install prisma typescript ts-node @types/node --save-dev > **Note** > - > 推荐在使用 Public Endpoint 连接 TiDB Dedicated 集群时,启用 TLS 连接。 + > 推荐在使用 Public Endpoint 连接 TiDB Cloud Dedicated 集群时,启用 TLS 连接。 > > 为了启用 TLS (SSL) 连接,将 `DATABASE_URL` 末尾添加 `sslaccept=strict` 参数,并使用 `sslcert=/path/to/ca.pem` 参数指定从连接对话框中下载的 CA 证书的文件路径。 diff --git a/develop/dev-guide-sample-application-nodejs-sequelize.md b/develop/dev-guide-sample-application-nodejs-sequelize.md index db612f2408e2..8814fb0bcb19 100644 --- a/develop/dev-guide-sample-application-nodejs-sequelize.md +++ b/develop/dev-guide-sample-application-nodejs-sequelize.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Sequelize](https://sequelize.org/) > **Note** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[Sequelize](https://sequelize.org/) 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -61,9 +61,9 @@ npm install -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -105,9 +105,9 @@ npm install
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 3. 在连接对话框中,从 **Connection Type** 下拉列表中选择 **Public**,并点击 **CA cert** 下载 CA 文件。 diff --git a/develop/dev-guide-sample-application-nodejs-typeorm.md b/develop/dev-guide-sample-application-nodejs-typeorm.md index 81716fcc2e9e..c4da7404d647 100644 --- a/develop/dev-guide-sample-application-nodejs-typeorm.md +++ b/develop/dev-guide-sample-application-nodejs-typeorm.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[TypeORM](https://typeorm.io/) 是当 > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 @@ -27,7 +27,7 @@ TiDB 是一个兼容 MySQL 的数据库。[TypeORM](https://typeorm.io/) 是当 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -76,9 +76,9 @@ npm install @types/node ts-node typescript --save-dev -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -114,15 +114,15 @@ npm install @types/node ts-node typescript --save-dev > **Note** > - > 当你使用 Public Endpoint 连接 TiDB Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 + > 当你使用 Public Endpoint 连接 TiDB Cloud Serverless 集群时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 3. 在连接对话框中,从 **Connection Type** 下拉列表中选择 **Public**,并点击 **CA cert** 下载 CA 文件。 @@ -150,7 +150,7 @@ npm install @types/node ts-node typescript --save-dev > **Note** > - > 推荐在使用 Public Endpoint 连接 TiDB Dedicated 集群时,启用 TLS 连接。为了启用 TLS (SSL) 连接,将 `TIDB_ENABLE_SSL` 修改为 `true`,并使用 `TIDB_CA_PATH` 指定从连接对话框中下载的 CA 证书的文件路径。 + > 推荐在使用 Public Endpoint 连接 TiDB Cloud Dedicated 集群时,启用 TLS 连接。为了启用 TLS (SSL) 连接,将 `TIDB_ENABLE_SSL` 修改为 `true`,并使用 `TIDB_CA_PATH` 指定从连接对话框中下载的 CA 证书的文件路径。 6. 保存 `.env` 文件。 @@ -272,9 +272,9 @@ export const AppDataSource = new DataSource({ > **Note** > -> 使用 Public Endpoint 连接 TiDB Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 +> 使用 Public Endpoint 连接 TiDB Cloud Serverless 时,**必须**启用 TLS 连接,请将 `TIDB_ENABLE_SSL` 修改为 `true`。 > -> 但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Serverless 信任。 +> 但是你**不需要**通过 `TIDB_CA_PATH` 指定 SSL CA 证书,因为 Node.js 默认使用内置的 [Mozilla CA 证书](https://wiki.mozilla.org/CA/Included_Certificates),该证书已被 TiDB Cloud Serverless 信任。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-python-django.md b/develop/dev-guide-sample-application-python-django.md index a9b96a1f3ecf..2dd48a5c7fe3 100644 --- a/develop/dev-guide-sample-application-python-django.md +++ b/develop/dev-guide-sample-application-python-django.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[Django](https://www.djangoproject.com > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -62,9 +62,9 @@ pip install -r requirements.txt -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -108,9 +108,9 @@ pip install -r requirements.txt
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-python-mysql-connector.md b/develop/dev-guide-sample-application-python-mysql-connector.md index e8cb3086db16..3ec747c7f1df 100644 --- a/develop/dev-guide-sample-application-python-mysql-connector.md +++ b/develop/dev-guide-sample-application-python-mysql-connector.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[MySQL Connector/Python](https://dev.m > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -52,9 +52,9 @@ pip install -r requirements.txt -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -98,9 +98,9 @@ pip install -r requirements.txt
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-python-mysqlclient.md b/develop/dev-guide-sample-application-python-mysqlclient.md index 7d107c27b050..c80bdfd6f749 100644 --- a/develop/dev-guide-sample-application-python-mysqlclient.md +++ b/develop/dev-guide-sample-application-python-mysqlclient.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[mysqlclient](https://github.com/PyMyS > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -54,9 +54,9 @@ pip install -r requirements.txt -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -96,15 +96,15 @@ pip install -r requirements.txt 注意替换 `{}` 中的占位符为连接对话框中获得的值。 - TiDB Serverless 要求使用 TLS (SSL) connection,由于 mysqlclient 的 `ssl_mode` 默认为 `PREFERRED`,所以不需要你手动指定 `CA_PATH`,设置为空即可。但如果你有特殊原因需要手动指定 `CA_PATH`,可以参考 [TiDB Cloud 文档](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-clusters#root-certificate-default-path)获取不同操作系统下证书的路径。 + TiDB Cloud Serverless 要求使用 TLS (SSL) connection,由于 mysqlclient 的 `ssl_mode` 默认为 `PREFERRED`,所以不需要你手动指定 `CA_PATH`,设置为空即可。但如果你有特殊原因需要手动指定 `CA_PATH`,可以参考 [TiDB Cloud 文档](https://docs.pingcap.com/tidbcloud/secure-connections-to-serverless-clusters#root-certificate-default-path)获取不同操作系统下证书的路径。 7. 保存 `.env` 文件。
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-python-peewee.md b/develop/dev-guide-sample-application-python-peewee.md index 6f78c8cef13a..7ec85d99d9aa 100644 --- a/develop/dev-guide-sample-application-python-peewee.md +++ b/develop/dev-guide-sample-application-python-peewee.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[peewee](https://github.com/coleifer/p > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -56,9 +56,9 @@ peewee 是一个支持多种数据库的 ORM 库。它是对数据库的高层 -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -102,9 +102,9 @@ peewee 是一个支持多种数据库的 ORM 库。它是对数据库的高层
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-python-pymysql.md b/develop/dev-guide-sample-application-python-pymysql.md index 536ca60ae734..75b667784c4c 100644 --- a/develop/dev-guide-sample-application-python-pymysql.md +++ b/develop/dev-guide-sample-application-python-pymysql.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[PyMySQL](https://github.com/PyMySQL/P > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -52,9 +52,9 @@ pip install -r requirements.txt -
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -98,9 +98,9 @@ pip install -r requirements.txt
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-python-sqlalchemy.md b/develop/dev-guide-sample-application-python-sqlalchemy.md index 31ca5bab8fd2..ee2bbe9b159f 100644 --- a/develop/dev-guide-sample-application-python-sqlalchemy.md +++ b/develop/dev-guide-sample-application-python-sqlalchemy.md @@ -15,14 +15,14 @@ TiDB 是一个兼容 MySQL 的数据库。[SQLAlchemy](https://www.sqlalchemy.or > **注意** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 和本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 和本地部署的 TiDB。 ## 前置需求 - 推荐 [Python 3.8](https://www.python.org/downloads/) 及以上版本。 - [Git](https://git-scm.com/downloads)。 - TiDB 集群。如果你还没有 TiDB 集群,可以按照以下方式创建: - - (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 + - (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行代码并连接到 TiDB @@ -58,13 +58,13 @@ SQLAlchemy 是一个支持多种数据库的 ORM 库。它是对数据库的高 -
+
> **注意:** > -> TiDB Serverless 集群目前存在一个限制:如果 5 分钟内没有活跃连接,集群将会自动关闭,这会导致所有连接中断。因此,当使用 SQLAlchemy 连接到 TiDB Serverless 集群时,从连接池中获取的连接可能会遇到 `OperationalError` 报错,例如 `Lost connection to MySQL server during query` 或 `MySQL Connection not available`。为了避免该错误,可将 `pool_recycle` 参数设置为 `300`。更多信息,请参阅 SQLAlchemy 文档 [Dealing with Disconnects](https://docs.sqlalchemy.org/en/20/core/pooling.html#dealing-with-disconnects)。 +> TiDB Cloud Serverless 集群目前存在一个限制:如果 5 分钟内没有活跃连接,集群将会自动关闭,这会导致所有连接中断。因此,当使用 SQLAlchemy 连接到 TiDB Cloud Serverless 集群时,从连接池中获取的连接可能会遇到 `OperationalError` 报错,例如 `Lost connection to MySQL server during query` 或 `MySQL Connection not available`。为了避免该错误,可将 `pool_recycle` 参数设置为 `300`。更多信息,请参阅 SQLAlchemy 文档 [Dealing with Disconnects](https://docs.sqlalchemy.org/en/20/core/pooling.html#dealing-with-disconnects)。 -1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Serverless 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Serverless 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会弹出连接对话框。 @@ -108,9 +108,9 @@ SQLAlchemy 是一个支持多种数据库的 ORM 库。它是对数据库的高
-
+
-1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Dedicated 集群,进入集群的 **Overview** 页面。 +1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,选择你的 TiDB Cloud Dedicated 集群,进入集群的 **Overview** 页面。 2. 点击右上角的 **Connect** 按钮,将会出现连接对话框。 diff --git a/develop/dev-guide-sample-application-ruby-mysql2.md b/develop/dev-guide-sample-application-ruby-mysql2.md index bed3fee5cda7..cc0370d71766 100644 --- a/develop/dev-guide-sample-application-ruby-mysql2.md +++ b/develop/dev-guide-sample-application-ruby-mysql2.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库。[mysql2](https://github.com/brianmario > **注意:** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 以及本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 以及本地部署的 TiDB。 ## 前置需求 @@ -28,7 +28,7 @@ TiDB 是一个兼容 MySQL 的数据库。[mysql2](https://github.com/brianmario 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行示例应用程序并连接到 TiDB @@ -68,7 +68,7 @@ bundle add mysql2 dotenv 根据不同的 TiDB 部署方式,使用不同的方法连接到 TiDB 集群。 -
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你的目标集群的名称,进入集群的 **Overview** 页面。 @@ -102,12 +102,12 @@ bundle add mysql2 dotenv > **注意:** > - > 对于 TiDB Serverless,当使用 Public Endpoint 时,**必须**通过 `DATABASE_ENABLE_SSL` 启用 TLS 连接。 + > 对于 TiDB Cloud Serverless,当使用 Public Endpoint 时,**必须**通过 `DATABASE_ENABLE_SSL` 启用 TLS 连接。 7. 保存 `.env` 文件。
-
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你的目标集群的名称,进入集群的 **Overview** 页面。 @@ -139,7 +139,7 @@ bundle add mysql2 dotenv > **注意:** > - > 当使用 Public Endpoint 连接到 TiDB Dedicated 集群时,建议启用 TLS 连接。 + > 当使用 Public Endpoint 连接到 TiDB Cloud Dedicated 集群时,建议启用 TLS 连接。 > > 要启用 TLS 连接,请将 `DATABASE_ENABLE_SSL` 修改为 `true`,并使用 `DATABASE_SSL_CA` 的值设置为从连接对话框下载的 CA 证书的文件路径。 @@ -221,7 +221,7 @@ client = Mysql2::Client.new(options) > **注意:** > -> 对于 TiDB Serverless,当使用 Public Endpoint 时,**必须**通过 `DATABASE_ENABLE_SSL` 启用 TLS 连接,但是你**不需要**通过 `DATABASE_SSL_CA` 指定 SSL CA 证书,因为 mysql2 gem 会按照特定的顺序搜索现有的 CA 证书,直到找到相应的文件。 +> 对于 TiDB Cloud Serverless,当使用 Public Endpoint 时,**必须**通过 `DATABASE_ENABLE_SSL` 启用 TLS 连接,但是你**不需要**通过 `DATABASE_SSL_CA` 指定 SSL CA 证书,因为 mysql2 gem 会按照特定的顺序搜索现有的 CA 证书,直到找到相应的文件。 ### 插入数据 diff --git a/develop/dev-guide-sample-application-ruby-rails.md b/develop/dev-guide-sample-application-ruby-rails.md index badfaeeddc87..cdfe0bec9ef6 100644 --- a/develop/dev-guide-sample-application-ruby-rails.md +++ b/develop/dev-guide-sample-application-ruby-rails.md @@ -15,7 +15,7 @@ TiDB 是一个兼容 MySQL 的数据库,[Rails](https://github.com/rails/rails > **注意:** > -> 本文档适用于 TiDB Serverless、TiDB Dedicated 以及本地部署的 TiDB。 +> 本文档适用于 TiDB Cloud Serverless、TiDB Cloud Dedicated 以及本地部署的 TiDB。 ## 前置需求 @@ -28,7 +28,7 @@ TiDB 是一个兼容 MySQL 的数据库,[Rails](https://github.com/rails/rails 如果你还没有 TiDB 集群,可以按照以下方式创建: -- (推荐方式)参考[创建 TiDB Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群),创建你自己的 TiDB Cloud 集群。 +- (推荐方式)参考[创建 TiDB Cloud Serverless 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群),创建你自己的 TiDB Cloud 集群。 - 参考[部署本地测试 TiDB 集群](/quick-start-with-tidb.md#部署本地测试集群)或[部署正式 TiDB 集群](/production-deployment-using-tiup.md),创建本地集群。 ## 运行示例应用程序并连接到 TiDB @@ -68,7 +68,7 @@ bundle add mysql2 dotenv 根据不同的 TiDB 部署方式,使用不同的方法连接到 TiDB 集群。 -
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你的目标集群的名称,进入集群的 **Overview** 页面。 @@ -92,12 +92,12 @@ bundle add mysql2 dotenv > **注意** > - > 对于 TiDB Serverless,当使用 Public Endpoint 时,必须使用 `ssl_mode=verify_identity` 查询参数启用 TLS 连接。 + > 对于 TiDB Cloud Serverless,当使用 Public Endpoint 时,必须使用 `ssl_mode=verify_identity` 查询参数启用 TLS 连接。 7. 保存 `.env` 文件。
-
+
1. 在 TiDB Cloud 的 [**Clusters**](https://tidbcloud.com/console/clusters) 页面中,点击你的目标集群的名称,进入集群的 **Overview** 页面。 @@ -123,7 +123,7 @@ bundle add mysql2 dotenv > **注意** > - > 当使用 Public Endpoint 连接到 TiDB Dedicated 集群时,建议启用 TLS 连接。 + > 当使用 Public Endpoint 连接到 TiDB Cloud Dedicated 集群时,建议启用 TLS 连接。 > > 要启用 TLS 连接,请将 `ssl_mode` 查询参数的值修改为 `verify_identity`,并将 `sslca` 的值设置为从连接对话框下载的 CA 证书的文件路径。 @@ -215,7 +215,7 @@ production: > **注意** > -> 对于 TiDB Serverless,当使用 Public Endpoint 时,**必须**通过在 `DATABASE_URL` 中设置 `ssl_mode` 查询参数为 `verify_identity` 来启用 TLS 连接,但是你**不需要**通过 `DATABASE_URL` 指定 SSL CA 证书,因为 mysql2 gem 会按照特定的顺序搜索现有的 CA 证书,直到找到相应的文件。 +> 对于 TiDB Cloud Serverless,当使用 Public Endpoint 时,**必须**通过在 `DATABASE_URL` 中设置 `ssl_mode` 查询参数为 `verify_identity` 来启用 TLS 连接,但是你**不需要**通过 `DATABASE_URL` 指定 SSL CA 证书,因为 mysql2 gem 会按照特定的顺序搜索现有的 CA 证书,直到找到相应的文件。 ### 插入数据 diff --git a/develop/dev-guide-tidb-crud-sql.md b/develop/dev-guide-tidb-crud-sql.md index 7dbd5d3c520f..2108dd10e104 100644 --- a/develop/dev-guide-tidb-crud-sql.md +++ b/develop/dev-guide-tidb-crud-sql.md @@ -9,7 +9,7 @@ summary: 简单介绍 TiDB 的增删改查 SQL。 ## 在开始之前 -请确保你已经连接到 TiDB 集群,若未连接,请参考[使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-serverless-集群)来创建一个 TiDB Serverless 集群。 +请确保你已经连接到 TiDB 集群,若未连接,请参考[使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md#第-1-步创建-tidb-cloud-serverless-集群)来创建一个 TiDB Cloud Serverless 集群。 ## 基本 SQL 操作 diff --git a/develop/dev-guide-update-data.md b/develop/dev-guide-update-data.md index 1f060b0dfc27..be795f94fa5a 100644 --- a/develop/dev-guide-update-data.md +++ b/develop/dev-guide-update-data.md @@ -14,7 +14,7 @@ summary: 更新数据、批量更新数据的方法、最佳实践及例子。 在阅读本页面之前,你需要准备以下事项: -- [使用 TiDB Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md) +- [使用 TiDB Cloud Serverless 构建 TiDB 集群](/develop/dev-guide-build-cluster-in-cloud.md) - 阅读[数据库模式概览](/develop/dev-guide-schema-design-overview.md),并[创建数据库](/develop/dev-guide-create-database.md)、[创建表](/develop/dev-guide-create-table.md)、[创建二级索引](/develop/dev-guide-create-secondary-indexes.md) - 若需使用 `UPDATE` 语句更新数据,需先[插入数据](/develop/dev-guide-insert-data.md) diff --git a/releases/release-7.0.0.md b/releases/release-7.0.0.md index ce2dec320805..2afe91f638a9 100644 --- a/releases/release-7.0.0.md +++ b/releases/release-7.0.0.md @@ -248,7 +248,7 @@ TiDB 版本:7.0.0 * [DBeaver](https://dbeaver.io/) v23.0.1 默认支持 TiDB [#17396](https://github.com/dbeaver/dbeaver/issues/17396) @[Icemap](https://github.com/Icemap) - 提供独立的 TiDB 模块、Icon 和标识。 - - 默认配置支持 [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless-beta),你可以更方便地连接 TiDB Serverless。 + - 默认配置支持 [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless),你可以更方便地连接 TiDB Cloud Serverless。 - 支持识别 TiDB 版本,从而显示或隐藏外键 Tab。 - 支持 Explain SQL 计划显示。 - 支持 TiDB 语法高亮,如 `PESSIMISTIC`、`OPTIMISTIC`、`AUTO_RANDOM`、`PLACEMENT`、`POLICY`、`REORGANIZE`、`EXCHANGE`、`CACHE`、`NONCLUSTERED`、`CLUSTERED` 等。 diff --git a/releases/release-7.1.0.md b/releases/release-7.1.0.md index a00a4d9fd053..8253feeff378 100644 --- a/releases/release-7.1.0.md +++ b/releases/release-7.1.0.md @@ -534,7 +534,7 @@ TiDB 7.1.0 为长期支持版本 (Long-Term Support Release, LTS)。 ## 性能测试 -如需了解 TiDB v7.1.0 的性能表现,你可以参考 TiDB Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.1.0-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.1.0-performance-benchmarking-with-sysbench)(英文版)。 +如需了解 TiDB v7.1.0 的性能表现,你可以参考 TiDB Cloud Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.1.0-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.1.0-performance-benchmarking-with-sysbench)(英文版)。 ## 贡献者 diff --git a/releases/release-7.5.0.md b/releases/release-7.5.0.md index 4dbcc481cef8..8b7b7f2e6c89 100644 --- a/releases/release-7.5.0.md +++ b/releases/release-7.5.0.md @@ -295,7 +295,7 @@ TiDB 7.5.0 为长期支持版本 (Long-Term Support Release, LTS)。 ## 性能测试 -如需了解 TiDB v7.5.0 的性能表现,你可以参考 TiDB Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.5.0-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.5.0-performance-benchmarking-with-sysbench)(英文版)。 +如需了解 TiDB v7.5.0 的性能表现,你可以参考 TiDB Cloud Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.5.0-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v7.5.0-performance-benchmarking-with-sysbench)(英文版)。 ## 贡献者 diff --git a/releases/release-8.1.0.md b/releases/release-8.1.0.md index 3c81677a0be0..877a78ae385c 100644 --- a/releases/release-8.1.0.md +++ b/releases/release-8.1.0.md @@ -343,7 +343,7 @@ TiDB 8.1.0 为长期支持版本 (Long-Term Support Release, LTS)。 ## 性能测试 -如需了解 TiDB v8.1.0 的性能表现,你可以参考 TiDB Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v8.1-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v8.1-performance-benchmarking-with-sysbench)(英文版)。 +如需了解 TiDB v8.1.0 的性能表现,你可以参考 TiDB Cloud Dedicated 集群的 [TPC-C 性能测试报告](https://docs.pingcap.com/tidbcloud/v8.1-performance-benchmarking-with-tpcc)和 [Sysbench 性能测试报告](https://docs.pingcap.com/tidbcloud/v8.1-performance-benchmarking-with-sysbench)(英文版)。 ## 贡献者 diff --git a/tidb-resource-control.md b/tidb-resource-control.md index d19154c6bb96..75489c805186 100644 --- a/tidb-resource-control.md +++ b/tidb-resource-control.md @@ -78,7 +78,7 @@ Request Unit (RU) 是 TiDB 对 CPU、IO 等系统资源的统一抽象的计量 > **注意:** > > - 每个写操作最终都被会复制到所有副本(TiKV 默认 3 个数据副本),并且每次复制都被认为是一个不同的写操作。 -> - 上表只列举了本地部署的 TiDB 计算 RU 时涉及的相关资源,其中不包括网络和存储部分。TiDB Serverless 的 RU 可参考 [TiDB Serverless Pricing Details](https://www.pingcap.com/tidb-cloud-serverless-pricing-details/)。 +> - 上表只列举了本地部署的 TiDB 计算 RU 时涉及的相关资源,其中不包括网络和存储部分。TiDB Cloud Serverless 的 RU 可参考 [TiDB Cloud Serverless Pricing Details](https://www.pingcap.com/tidb-cloud-serverless-pricing-details/)。 > - 目前 TiFlash 资源管控仅考虑 SQL CPU(即查询的 pipeline task 运行所占用的 CPU 时间)以及 read request payload。 ## 相关参数 From 5c3e5ac35a5ece94caa8e11e560b5110e56de767 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Tue, 10 Sep 2024 17:20:27 +0800 Subject: [PATCH 2/2] Resolve conflict --- develop/dev-guide-build-cluster-in-cloud.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/develop/dev-guide-build-cluster-in-cloud.md b/develop/dev-guide-build-cluster-in-cloud.md index 069e3ca6d57f..031cd352268c 100644 --- a/develop/dev-guide-build-cluster-in-cloud.md +++ b/develop/dev-guide-build-cluster-in-cloud.md @@ -1,12 +1,6 @@ --- -<<<<<<< HEAD -title: 使用 TiDB Serverless 构建 TiDB 集群 -summary: 使用 TiDB Serverless 构建 TiDB 集群,并连接 TiDB Serverless 集群。 -======= title: 使用 TiDB Cloud Serverless 构建 TiDB 集群 summary: 使用 TiDB Cloud Serverless 构建 TiDB 集群,并连接 TiDB Cloud Serverless 集群。 -aliases: ['/zh/tidb/dev/build-cluster-in-cloud'] ->>>>>>> 476afb307b (*: update TiDB product names (#18520)) ---