Skip to content

Commit

Permalink
reference: add a description of max-index-length (#2748) (#2764)
Browse files Browse the repository at this point in the history
* cherry pick #2748 to release-3.0

Signed-off-by: sre-bot <sre-bot@pingcap.com>

* *: fix conflicts

Co-authored-by: Lynn <zimu_xia@126.com>
  • Loading branch information
sre-bot and zimulala authored Apr 15, 2020
1 parent 1f1ddfe commit 63b7e58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions reference/configuration/tidb-server/configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
+ 默认值:""
+ 默认情况下,TiDB 版本号格式为:`5.7.${mysql_latest_minor_version}-TiDB-${tidb_version}`

### `max-index-length`

+ 用于设置新建索引的长度限制。
+ 默认值:3072
+ 单位:byte。
+ 目前的合法值范围 `[3072, 3072*4]`。MySQL 和 TiDB v3.0.11 之前版本(不包含 v3.0.11)没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 `3072`,TiDB 在 v3.0.7 以及之前版本该值为 `3072*4`,在 v3.0.7 之后版本(包含 v3.0.8、v3.0.9 和 v3.0.10)的该值为 `3072`。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。

## log

日志相关的配置项。
Expand Down

0 comments on commit 63b7e58

Please sign in to comment.