From a14777c72c8f876483e2f6da2f9a4f68a161d3b7 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Sun, 20 Sep 2026 14:46:23 +0800 Subject: [PATCH 1/4] Create empty translation PR From 77a2f48c9ff738c8c30e26d7451e153a94b0228b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 20 Sep 2026 06:47:53 +0000 Subject: [PATCH 2/4] Auto-sync: Update Chinese docs from English PR Synced from: https://github.com/pingcap/docs/pull/23899 Target PR: https://github.com/pingcap/docs-cn/pull/21944 Co-authored-by: github-actions[bot] --- br/br-snapshot-guide.md | 2 +- develop/dev-guide-sample-application-aws-lambda.md | 6 +++--- develop/dev-guide-sample-application-nextjs.md | 6 +++--- faq/backup-and-restore-faq.md | 2 +- releases/release-6.5.7.md | 4 ++-- tidb-troubleshooting-map.md | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/br/br-snapshot-guide.md b/br/br-snapshot-guide.md index db6ed0bb6fbd..a83018b57ac1 100644 --- a/br/br-snapshot-guide.md +++ b/br/br-snapshot-guide.md @@ -140,7 +140,7 @@ tiup br restore full --pd "${PD_IP}:2379" \ - 统计信息表 (`mysql.stat_*`) - 系统变量表 (`mysql.tidb`、`mysql.global_variables`) -- [其他系统表](https://github.com/pingcap/tidb/blob/master/br/pkg/restore/systable_restore.go#L31) +- [其他系统表](https://github.com/pingcap/tidb/blob/release-6.5/br/pkg/restore/systable_restore.go#L31) 当恢复系统权限相关数据的时候,请注意:在恢复数据前 BR 会检查目标集群的系统表是否跟备份数据中的系统表兼容。这里的兼容是指满足以下所有条件: diff --git a/develop/dev-guide-sample-application-aws-lambda.md b/develop/dev-guide-sample-application-aws-lambda.md index 3d32fb5ad9e5..4e0e0e11ebf5 100644 --- a/develop/dev-guide-sample-application-aws-lambda.md +++ b/develop/dev-guide-sample-application-aws-lambda.md @@ -336,8 +336,8 @@ console.log(rsh.affectedRows); ## 注意事项 -- 推荐使用[连接池](https://github.com/sidorares/node-mysql2#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 -- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://github.com/sidorares/node-mysql2#using-prepared-statements)执行 SQL。 +- 推荐使用[连接池](https://sidorares.github.io/node-mysql2/docs#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 +- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/docs#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/)。 @@ -345,7 +345,7 @@ console.log(rsh.affectedRows); ## 下一步 - 关于在 AWS Lambda 函数中使用 TiDB 的更多细节,可以参考 [`TiDB-Lambda-integration/aws-lambda-bookstore` 示例程序](https://github.com/pingcap/TiDB-Lambda-integration/blob/main/aws-lambda-bookstore/README.md)。你也可以使用 AWS API Gateway 为你的应用程序构建 RESTful API。 -- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/zh-CN/docs)。 +- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/docs/documentation)。 - 关于 AWS Lambda 的更多使用方法,可以参考 [AWS Lambda 开发者指南](https://docs.aws.amazon.com/zh_cn/lambda/latest/dg/welcome.html)。 - 你可以继续阅读开发者文档的其它章节来获取更多 TiDB 应用开发的最佳实践。例如:[插入数据](/develop/dev-guide-insert-data.md),[更新数据](/develop/dev-guide-update-data.md),[删除数据](/develop/dev-guide-delete-data.md),[单表读取](/develop/dev-guide-get-data-from-single-table.md),[事务](/develop/dev-guide-transaction-overview.md),[SQL 性能优化](/develop/dev-guide-optimize-sql-overview.md)等。 - 如果你更倾向于参与课程进行学习,我们也提供专业的 [TiDB 开发者课程](https://pingkai.cn/learn)支持,并在考试后提供相应的[资格认证](https://learn.pingkai.cn/learner/certification-center)。 diff --git a/develop/dev-guide-sample-application-nextjs.md b/develop/dev-guide-sample-application-nextjs.md index 56dd93387b76..93d4925065e0 100644 --- a/develop/dev-guide-sample-application-nextjs.md +++ b/develop/dev-guide-sample-application-nextjs.md @@ -256,14 +256,14 @@ console.log(rsh.affectedRows); ## 注意事项 -- 推荐使用[连接池](https://github.com/sidorares/node-mysql2#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 -- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://github.com/sidorares/node-mysql2#using-prepared-statements)执行 SQL。 +- 推荐使用[连接池](https://sidorares.github.io/node-mysql2/docs#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 +- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/docs#using-prepared-statements)执行 SQL。 - 在不涉及大量复杂 SQL 语句的场景下,推荐使用 ORM 框架(例如:[Sequelize](https://sequelize.org/)、[TypeORM](https://typeorm.io/) 或 [Prisma](https://www.prisma.io/))来提升你的开发效率。 ## 下一步 - 关于使用 ORM 框架和 Next.js 构建复杂应用程序的更多细节,可以参考 [tidb-prisma-vercel-demo](https://github.com/pingcap/tidb-prisma-vercel-demo)。 -- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/zh-CN/docs)。 +- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/docs/documentation)。 - 你可以继续阅读开发者文档的其它章节来获取更多 TiDB 应用开发的最佳实践。例如:[插入数据](/develop/dev-guide-insert-data.md),[更新数据](/develop/dev-guide-update-data.md),[删除数据](/develop/dev-guide-delete-data.md),[单表读取](/develop/dev-guide-get-data-from-single-table.md),[事务](/develop/dev-guide-transaction-overview.md),[SQL 性能优化](/develop/dev-guide-optimize-sql-overview.md)等。 - 如果你更倾向于参与课程进行学习,我们也提供专业的 [TiDB 开发者课程](https://pingkai.cn/learn)支持,并在考试后提供相应的[资格认证](https://learn.pingkai.cn/learner/certification-center)。 diff --git a/faq/backup-and-restore-faq.md b/faq/backup-and-restore-faq.md index e92556af997b..073ced0146c4 100644 --- a/faq/backup-and-restore-faq.md +++ b/faq/backup-and-restore-faq.md @@ -297,7 +297,7 @@ br restore full -f 'mysql.usertable' -s $external_storage_url --with-sys-table - 统计信息表(`mysql.stat_*`) - 系统变量表(`mysql.tidb`、`mysql.global_variables`) -- [其他系统表](https://github.com/pingcap/tidb/blob/master/br/pkg/restore/systable_restore.go#L31) +- [其他系统表](https://github.com/pingcap/tidb/blob/release-6.5/br/pkg/restore/systable_restore.go#L31) ### 恢复的时候,报错 `cannot file rewrite rule`,该如何处理? diff --git a/releases/release-6.5.7.md b/releases/release-6.5.7.md index 4a25d79b679f..f670e0dbf97f 100644 --- a/releases/release-6.5.7.md +++ b/releases/release-6.5.7.md @@ -48,7 +48,7 @@ TiDB 版本:6.5.7 - 修复 TiDB server 在使用企业插件审计日志时可能占用大量资源的问题 [#49273](https://github.com/pingcap/tidb/issues/49273) @[lcwangchao](https://github.com/lcwangchao) - 修复 `ErrLoadDataInvalidURI`(无效的 S3 URI 错误)报错中的信息内容 [#48164](https://github.com/pingcap/tidb/issues/48164) @[lance6716](https://github.com/lance6716) - 修复 `tidb_server_memory_limit` 导致内存长期压力较高时,TiDB CPU 利用率过高的问题 [#48741](https://github.com/pingcap/tidb/issues/48741) @[XuHuaiyu](https://github.com/XuHuaiyu) - - 修复当内存使用超限时包含公共表表达式 (CTE) 的查询非预期卡住的问题 [#49096](https://github.com/pingcap/tidb/issues/49096) @[AilinKid](https://github.com/AilinKid}) + - 修复当内存使用超限时包含公共表表达式 (CTE) 的查询非预期卡住的问题 [#49096](https://github.com/pingcap/tidb/issues/49096) @[AilinKid](https://github.com/AilinKid) - 修复某些情况下相同的查询计划拥有不同的 `PLAN_DIGEST` 的问题 [#47634](https://github.com/pingcap/tidb/issues/47634) @[King-Dylan](https://github.com/King-Dylan) - 修复当 `tidb_max_chunk_size` 值较小时,包含 CTE 的查询出现 `runtime error: index out of range [32] with length 32` 错误的问题 [#48808](https://github.com/pingcap/tidb/issues/48808) @[guo-shaoge](https://github.com/guo-shaoge) - 修复 TiDB server 在优雅关闭 (graceful shutdown) 时可能 panic 的问题 [#36793](https://github.com/pingcap/tidb/issues/36793) @[bb7133](https://github.com/bb7133) @@ -92,5 +92,5 @@ TiDB 版本:6.5.7 + TiCDC - - 修复数据同步到下游 MySQL 时可能出现 `checkpoint-ts` 卡住的问题 [#10334](https://github.com/pingcap/tiflow/issues/10334) @[zhangjinpeng1987](https://github.com/zhangjinpeng1987) + - 修复数据同步到下游 MySQL 时可能出现 `checkpoint-ts` 卡住的问题 [#10334](https://github.com/pingcap/tiflow/issues/10334) @[zhangjinpeng87](https://github.com/zhangjinpeng87) - 修复 `kv-client` 初始化过程中可能出现数据竞争的问题 [#10095](https://github.com/pingcap/tiflow/issues/10095) @[3AceShowHand](https://github.com/3AceShowHand) diff --git a/tidb-troubleshooting-map.md b/tidb-troubleshooting-map.md index a87e01686e08..6edac59b1c88 100644 --- a/tidb-troubleshooting-map.md +++ b/tidb-troubleshooting-map.md @@ -478,7 +478,7 @@ TiDB 支持完整的分布式事务,自 v3.0 版本起,提供乐观事务与 ### 6.3 TiDB Lightning 问题 -- 6.3.1 TiDB Lightning 是快速的全量数据导入工具,见 [TiDB Lightning on GitHub](https://github.com/pingcap/tidb/tree/master/br/pkg/lightning)。 +- 6.3.1 TiDB Lightning 是快速的全量数据导入工具,见 [TiDB Lightning on GitHub](https://github.com/pingcap/tidb/tree/release-6.5/br/pkg/lightning)。 - 6.3.2 导入速度太慢。 From 481745883a34d80e112dc258a6b8e3539565ebb3 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Sun, 20 Sep 2026 14:51:38 +0800 Subject: [PATCH 3/4] Apply suggestions from code review --- develop/dev-guide-sample-application-aws-lambda.md | 2 +- develop/dev-guide-sample-application-nextjs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/develop/dev-guide-sample-application-aws-lambda.md b/develop/dev-guide-sample-application-aws-lambda.md index 4e0e0e11ebf5..fc9cb3a0c947 100644 --- a/develop/dev-guide-sample-application-aws-lambda.md +++ b/develop/dev-guide-sample-application-aws-lambda.md @@ -337,7 +337,7 @@ console.log(rsh.affectedRows); ## 注意事项 - 推荐使用[连接池](https://sidorares.github.io/node-mysql2/docs#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 -- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/docs#using-prepared-statements)执行 SQL。 +- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/zh-CN/docs#sql预处理的使用)执行 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/)。 diff --git a/develop/dev-guide-sample-application-nextjs.md b/develop/dev-guide-sample-application-nextjs.md index 93d4925065e0..48f0bd98e1c3 100644 --- a/develop/dev-guide-sample-application-nextjs.md +++ b/develop/dev-guide-sample-application-nextjs.md @@ -257,7 +257,7 @@ console.log(rsh.affectedRows); ## 注意事项 - 推荐使用[连接池](https://sidorares.github.io/node-mysql2/docs#using-connection-pools)来管理数据库连接,以减少频繁建立和销毁连接所带来的性能开销。 -- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/docs#using-prepared-statements)执行 SQL。 +- 为了避免 SQL 注入的风险,推荐使用[预处理语句](https://sidorares.github.io/node-mysql2/zh-CN/docs#sql预处理的使用)执行 SQL。 - 在不涉及大量复杂 SQL 语句的场景下,推荐使用 ORM 框架(例如:[Sequelize](https://sequelize.org/)、[TypeORM](https://typeorm.io/) 或 [Prisma](https://www.prisma.io/))来提升你的开发效率。 ## 下一步 From 9c646c15194db4731e534f25f39a28df49dbb9ea Mon Sep 17 00:00:00 2001 From: lilin90 Date: Sun, 20 Sep 2026 14:55:09 +0800 Subject: [PATCH 4/4] Update mysql2 doc links in samples Replace outdated mysql2 documentation URLs with the current Chinese docs in the AWS Lambda and Next.js sample application guides. --- develop/dev-guide-sample-application-aws-lambda.md | 2 +- develop/dev-guide-sample-application-nextjs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/develop/dev-guide-sample-application-aws-lambda.md b/develop/dev-guide-sample-application-aws-lambda.md index fc9cb3a0c947..b7223e6ebaa0 100644 --- a/develop/dev-guide-sample-application-aws-lambda.md +++ b/develop/dev-guide-sample-application-aws-lambda.md @@ -345,7 +345,7 @@ console.log(rsh.affectedRows); ## 下一步 - 关于在 AWS Lambda 函数中使用 TiDB 的更多细节,可以参考 [`TiDB-Lambda-integration/aws-lambda-bookstore` 示例程序](https://github.com/pingcap/TiDB-Lambda-integration/blob/main/aws-lambda-bookstore/README.md)。你也可以使用 AWS API Gateway 为你的应用程序构建 RESTful API。 -- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/docs/documentation)。 +- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/zh-CN/docs)。 - 关于 AWS Lambda 的更多使用方法,可以参考 [AWS Lambda 开发者指南](https://docs.aws.amazon.com/zh_cn/lambda/latest/dg/welcome.html)。 - 你可以继续阅读开发者文档的其它章节来获取更多 TiDB 应用开发的最佳实践。例如:[插入数据](/develop/dev-guide-insert-data.md),[更新数据](/develop/dev-guide-update-data.md),[删除数据](/develop/dev-guide-delete-data.md),[单表读取](/develop/dev-guide-get-data-from-single-table.md),[事务](/develop/dev-guide-transaction-overview.md),[SQL 性能优化](/develop/dev-guide-optimize-sql-overview.md)等。 - 如果你更倾向于参与课程进行学习,我们也提供专业的 [TiDB 开发者课程](https://pingkai.cn/learn)支持,并在考试后提供相应的[资格认证](https://learn.pingkai.cn/learner/certification-center)。 diff --git a/develop/dev-guide-sample-application-nextjs.md b/develop/dev-guide-sample-application-nextjs.md index 48f0bd98e1c3..88d6200c2c72 100644 --- a/develop/dev-guide-sample-application-nextjs.md +++ b/develop/dev-guide-sample-application-nextjs.md @@ -263,7 +263,7 @@ console.log(rsh.affectedRows); ## 下一步 - 关于使用 ORM 框架和 Next.js 构建复杂应用程序的更多细节,可以参考 [tidb-prisma-vercel-demo](https://github.com/pingcap/tidb-prisma-vercel-demo)。 -- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/docs/documentation)。 +- 关于 mysql2 的更多使用方法,可以参考 [mysql2 的官方文档](https://sidorares.github.io/node-mysql2/zh-CN/docs)。 - 你可以继续阅读开发者文档的其它章节来获取更多 TiDB 应用开发的最佳实践。例如:[插入数据](/develop/dev-guide-insert-data.md),[更新数据](/develop/dev-guide-update-data.md),[删除数据](/develop/dev-guide-delete-data.md),[单表读取](/develop/dev-guide-get-data-from-single-table.md),[事务](/develop/dev-guide-transaction-overview.md),[SQL 性能优化](/develop/dev-guide-optimize-sql-overview.md)等。 - 如果你更倾向于参与课程进行学习,我们也提供专业的 [TiDB 开发者课程](https://pingkai.cn/learn)支持,并在考试后提供相应的[资格认证](https://learn.pingkai.cn/learner/certification-center)。