Inaccurate Documentation Information on TiDB Server Version

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 文档信息不准确 tidb server version

| username: ShawnYan

Documentation Error, please provide feedback according to the template below:

  • Issue Category: Outdated information, Incorrect description, Code error, Parameter error, Link error, Typographical error
  • Affected Page: Link + Screenshot
  • Error Description:

By default, the TiDB version format is: 5.7.${mysql_latest_minor_version}-TiDB-${tidb_version}.
5.7.${mysql_latest_minor_version}

In fact, this part is hardcoded in the code:
https://github.com/pingcap/tidb/blob/master/parser/mysql/const.go#L34

ServerVersion = fmt.Sprintf(“5.7.25-TiDB-%s”, TiDBReleaseVersion)


The current local version is Server version: 5.7.25-TiDB-v7.2.0 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible

However, at the time of the 7.2 release, the MySQL version had already reached 5.7.42

Release date: June 29, 2023
TiDB version: 7.2.0
--
Changes in MySQL 5.7.43 (2023-07-18, General Availability)
Changes in MySQL 5.7.42 (2023-04-18, General Availability)
| username: ShawnYan | Original post link

https://github.com/pingcap/tidb/blob/master/infoschema/tables.go#L1781

// The default TiDBVersion is 5.7.25-TiDB-${TiDBReleaseVersion}.

| username: Kongdom | Original post link

Got it. Please provide the Chinese text you need translated.

| username: zhanggame1 | Original post link

How can I find the hardcoded parts?

| username: ShawnYan | Original post link

While compiling TiDB, I wanted to change the version number, so I looked it up…

| username: zhanggame1 | Original post link

Isn’t the version number just changed in the configuration file?

| username: MrSylar | Original post link

Definitely a documentation content bug.

| username: ShawnYan | Original post link

Yes, but I want to seek a different path.

| username: redgame | Original post link

Careful…

| username: ShawnYan | Original post link

Raise an issue:

| username: ShawnYan | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.