Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add info about compatibility issues with Connector/J 8.0 with TiDB v7.5 #16121

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions develop/dev-guide-choose-driver-or-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ TiDB 兼容 MySQL 的协议,但存在部分与 MySQL 不兼容或有差异的

按照 [MySQL 文档](https://dev.mysql.com/doc/connector-j/en/)中的说明下载并配置 Java JDBC 驱动程序即可使用。对于 TiDB v6.3.0 及以上版本,建议使用 MySQL Connector/J 8.0.33 及以上版本。
Oreoxmt marked this conversation as resolved.
Show resolved Hide resolved

> **建议:**
> **注意:**
>
> 在 8.0.32 之前的 MySQL Connector/J 8.0 版本中存在一个 [bug](https://bugs.mysql.com/bug.php?id=106252),当与 TiDB v6.3.0 之前的版本一起使用时,可能会导致线程卡死。为了避免此问题,建议使用 MySQL Connector/J 8.0.32 或更高版本,或者使用 TiDB JDBC(见 *TiDB-JDBC* 标签)。
Oreoxmt marked this conversation as resolved.
Show resolved Hide resolved

MySQL Connector/J 8.0 与 TiDB v7.5.0版本一起使用 时,建议将 TiDB 配置项 [`server-version`](https://docs.pingcap.com/tidb/v7.5/tidb-configuration-file#server-version) 设置为`"5.7.25-TiDB-v7.5.0"`。如果 TiDB 服务器报告的是 MySQL 8.0.11 或以上版本,MySQL Connector/J 会尝试访问 `information_schema.KEYWORDS` 表。但是,该表不会出现在TiDB v7.5.0 中。
yusra1007 marked this conversation as resolved.
Show resolved Hide resolved
有关一个完整的实例应用程序,可参阅 [TiDB 和 JDBC 的简单 CRUD 应用程序](/develop/dev-guide-sample-application-java-jdbc.md)。

</div>
Expand Down