Skip to content

Commit fdacea3

Browse files
authored
update MariaDB documentation links from kb/ to docs/ (#20968) (#20970)
1 parent cade63e commit fdacea3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

best-practices/java-app-best-practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ summary: 本文介绍了开发 Java 应用程序使用 TiDB 的常见问题与
1212
通常 Java 应用中和数据库相关的常用组件有:
1313

1414
- 网络协议:客户端通过标准 [MySQL 协议](https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_PROTOCOL.html)和 TiDB 进行网络交互。
15-
- JDBC API 及实现:Java 应用通常使用 [JDBC (Java Database Connectivity)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) 来访问数据库。JDBC 定义了访问数据库 API,而 JDBC 实现完成标准 API 到 MySQL 协议的转换,常见的 JDBC 实现是 [MySQL Connector/J](https://github.com/mysql/mysql-connector-j),此外有些用户可能使用 [MariaDB Connector/J](https://mariadb.com/kb/en/library/about-mariadb-connector-j/#about-mariadb-connectorj)
15+
- JDBC API 及实现:Java 应用通常使用 [JDBC (Java Database Connectivity)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) 来访问数据库。JDBC 定义了访问数据库 API,而 JDBC 实现完成标准 API 到 MySQL 协议的转换,常见的 JDBC 实现是 [MySQL Connector/J](https://github.com/mysql/mysql-connector-j),此外有些用户可能使用 [MariaDB Connector/J](https://mariadb.com/docs/connectors/mariadb-connector-j/about-mariadb-connector-j#about-mariadb-connectorj)
1616
- 数据库连接池:为了避免每次创建连接,通常应用会选择使用数据库连接池来复用连接,JDBC [DataSource](https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html) 定义了连接池 API,开发者可根据实际需求选择使用某种开源连接池实现。
1717
- 数据访问框架:应用通常选择通过数据访问框架 ([MyBatis](https://mybatis.org/mybatis-3/zh_CN/index.html), [Hibernate](https://hibernate.org/)) 的封装来进一步简化和管理数据库访问操作。
1818
- 业务实现:业务逻辑控制着何时发送和发送什么指令到数据库,其中有些业务会使用 [Spring Transaction](https://docs.spring.io/spring/docs/4.2.x/spring-framework-reference/html/transaction.html) 切面来控制管理事务的开始和提交逻辑。
@@ -71,7 +71,7 @@ TiDB 同时支持以上两种方式,但更推荐使用第一种将 `FetchSize`
7171

7272
### MySQL JDBC 参数
7373

74-
JDBC 实现通常通过 JDBC URL 参数的形式来提供实现相关的配置。这里以 MySQL 官方的 Connector/J 来介绍[参数配置](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html)(如果使用的是 MariaDB,可以参考 [MariaDB 的类似配置](https://mariadb.com/kb/en/library/about-mariadb-connector-j/#optional-url-parameters))。因为配置项较多,这里主要关注几个可能影响到性能的参数。
74+
JDBC 实现通常通过 JDBC URL 参数的形式来提供实现相关的配置。这里以 MySQL 官方的 Connector/J 来介绍[参数配置](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html)(如果使用的是 MariaDB,可以参考 [MariaDB 的类似配置](https://mariadb.com/docs/connectors/mariadb-connector-j/about-mariadb-connector-j#optional-url-parameters))。因为配置项较多,这里主要关注几个可能影响到性能的参数。
7575

7676
#### Prepare 相关参数
7777

develop/dev-guide-connection-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ TiDB 同时支持以上两种方式,但更推荐使用第一种将 `FetchSize`
143143
144144
### MySQL JDBC 参数
145145
146-
JDBC 实现通常通过 JDBC URL 参数的形式来提供实现相关的配置。这里以 MySQL 官方的 Connector/J 来介绍[参数配置](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html)(如果使用的是 MariaDB,可以参考 [MariaDB 的类似配置](https://mariadb.com/kb/en/library/about-mariadb-connector-j/#optional-url-parameters))。因为配置项较多,这里主要关注几个可能影响到性能的参数。
146+
JDBC 实现通常通过 JDBC URL 参数的形式来提供实现相关的配置。这里以 MySQL 官方的 Connector/J 来介绍[参数配置](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html)(如果使用的是 MariaDB,可以参考 [MariaDB 的类似配置](https://mariadb.com/docs/connectors/mariadb-connector-j/about-mariadb-connector-j#optional-url-parameters))。因为配置项较多,这里主要关注几个可能影响到性能的参数。
147147
148148
#### Prepare 相关参数
149149

dm/dm-glossary.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ summary: 学习 TiDB Data Migration 相关术语
1313

1414
### Binlog
1515

16-
在 TiDB DM 中,Binlog 通常指 MySQL/MariaDB 生成的 binary log 文件,具体请参考 [MySQL Binary Log](https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication.html)[MariaDB Binary Log](https://mariadb.com/kb/en/library/binary-log/)
16+
在 TiDB DM 中,Binlog 通常指 MySQL/MariaDB 生成的 binary log 文件,具体请参考 [MySQL Binary Log](https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication.html)[MariaDB Binary Log](https://mariadb.com/docs/server/server-management/server-monitoring-logs/binary-log)
1717

1818
### Binlog event
1919

20-
MySQL/MariaDB 生成的 Binlog 文件中的数据变更信息,具体请参考 [MySQL Binlog Event](https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html)[MariaDB Binlog Event](https://mariadb.com/kb/en/library/1-binlog-events/)
20+
MySQL/MariaDB 生成的 Binlog 文件中的数据变更信息,具体请参考 [MySQL Binlog Event](https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html)[MariaDB Binlog Event](https://mariadb.com/docs/server/reference/clientserver-protocol/replication-protocol/1-binlog-events)
2121

2222
### Binlog event filter
2323

2424
比 Block & allow table list 更加细粒度的过滤功能,具体可参考 [Binlog Event Filter](/dm/dm-binlog-event-filter.md)
2525

2626
### Binlog position
2727

28-
特定 Binlog event 在 Binlog 文件中的位置偏移信息,具体请参考 [MySQL `SHOW BINLOG EVENTS`](https://dev.mysql.com/doc/refman/8.0/en/show-binlog-events.html)[MariaDB `SHOW BINLOG EVENTS`](https://mariadb.com/kb/en/library/show-binlog-events/)
28+
特定 Binlog event 在 Binlog 文件中的位置偏移信息,具体请参考 [MySQL `SHOW BINLOG EVENTS`](https://dev.mysql.com/doc/refman/8.0/en/show-binlog-events.html)[MariaDB `SHOW BINLOG EVENTS`](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-binlog-events)
2929

3030
### Binlog replication 处理单元/ sync 处理单元
3131

3232
DM-worker 内部用于读取上游 Binlog 或本地 Relay log 并迁移到下游的处理单元,每个 Subtask 对应一个 Binlog replication 处理单元。在当前文档中,有时也称作 Sync 处理单元。
3333

3434
### Block & allow table list
3535

36-
针对上游数据库实例表的黑白名单过滤功能,具体可参考 [Block & Allow Table Lists](/dm/dm-block-allow-table-lists.md)。该功能与 [MySQL Replication Filtering](https://dev.mysql.com/doc/refman/8.0/en/replication-rules.html)[MariaDB Replication Filters](https://mariadb.com/kb/en/library/replication-filters/) 类似。
36+
针对上游数据库实例表的黑白名单过滤功能,具体可参考 [Block & Allow Table Lists](/dm/dm-block-allow-table-lists.md)。该功能与 [MySQL Replication Filtering](https://dev.mysql.com/doc/refman/8.0/en/replication-rules.html)[MariaDB Replication Filters](https://mariadb.com/docs/server/ha-and-performance/standard-replication/replication-filters) 类似。
3737

3838
### Bound
3939

@@ -68,7 +68,7 @@ DM-worker 内部用于从上游导出全量数据的处理单元,每个 Subtas
6868

6969
### GTID
7070

71-
MySQL/MariaDB 的全局事务 ID,当启用该功能后会在 Binlog 文件中记录 GTID 相关信息,多个 GTID 即组成为 GTID Set,具体请参考 [MySQL GTID Format and Storage](https://dev.mysql.com/doc/refman/8.0/en/replication-gtids-concepts.html)[MariaDB Global Transaction ID](https://mariadb.com/kb/en/library/gtid/)
71+
MySQL/MariaDB 的全局事务 ID,当启用该功能后会在 Binlog 文件中记录 GTID 相关信息,多个 GTID 即组成为 GTID Set,具体请参考 [MySQL GTID Format and Storage](https://dev.mysql.com/doc/refman/8.0/en/replication-gtids-concepts.html)[MariaDB Global Transaction ID](https://mariadb.com/docs/server/ha-and-performance/standard-replication/gtid)
7272

7373
## L
7474

@@ -88,7 +88,7 @@ DM-worker 内部用于将全量导出数据导入到下游的处理单元,每
8888

8989
### Relay log
9090

91-
DM-worker 从上游 MySQL/MariaDB 拉取 Binlog 后存储在本地的文件,当前其格式为标准的 Binlog 格式,可使用版本兼容的 [mysqlbinlog](https://dev.mysql.com/doc/refman/8.0/en/mysqlbinlog.html) 等工具进行解析。其作用与 [MySQL Relay Log](https://dev.mysql.com/doc/refman/8.0/en/replica-logs-relaylog.html)[MariaDB Relay Log](https://mariadb.com/kb/en/library/relay-log/) 相近。
91+
DM-worker 从上游 MySQL/MariaDB 拉取 Binlog 后存储在本地的文件,当前其格式为标准的 Binlog 格式,可使用版本兼容的 [mysqlbinlog](https://dev.mysql.com/doc/refman/8.0/en/mysqlbinlog.html) 等工具进行解析。其作用与 [MySQL Relay Log](https://dev.mysql.com/doc/refman/8.0/en/replica-logs-relaylog.html)[MariaDB Relay Log](https://mariadb.com/docs/server/server-management/server-monitoring-logs/binary-log/relay-log) 相近。
9292

9393
有关 TiDB DM 内 Relay log 的目录结构、初始迁移规则、数据清理等内容,可参考 [TiDB DM Relay Log](/dm/relay-log.md)
9494

migrate-from-mariadb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ summary: 介绍如何将数据从 MariaDB 文件迁移数据到 TiDB。
3232

3333
TiDB 和 [MySQL 兼容](/mysql-compatibility.md),而 MySQL 和 MariaDB 也有很多通用的特性。在迁移数据前需要注意,可能某些 MariaDB 特有的特性和 TiDB 并不兼容。
3434

35-
除了检查本小节介绍的事项之外,建议你参考 [MariaDB Compatibility & Differences](https://mariadb.com/kb/en/compatibility-differences/) 检查相关配置。
35+
除了检查本小节介绍的事项之外,建议你参考 [MariaDB Compatibility and Differences](https://mariadb.com/docs/release-notes/community-server/about/compatibility-and-differences) 检查相关配置。
3636

3737
### 认证
3838

@@ -61,7 +61,7 @@ GROUP BY
6161

6262
### 系统版本表
6363

64-
TiDB 不支持[系统版本表 (System-Versioned Table)](https://mariadb.com/kb/en/system-versioned-tables/)。但是 TiDB 支持 [`AS OF TIMESTAMP`](/as-of-timestamp.md),可以在某些场景下取代系统版本表。
64+
TiDB 不支持[系统版本表 (System-Versioned Table)](https://mariadb.com/docs/server/reference/sql-structure/temporal-tables/system-versioned-tables)。但是 TiDB 支持 [`AS OF TIMESTAMP`](/as-of-timestamp.md),可以在某些场景下取代系统版本表。
6565

6666
你可以执行下列语句检查受影响的表:
6767

0 commit comments

Comments
 (0)