Skip to content

Commit

Permalink
cherry pick pingcap#2748 to release-3.1
Browse files Browse the repository at this point in the history
Signed-off-by: sre-bot <sre-bot@pingcap.com>
  • Loading branch information
zimulala authored and sre-bot committed Apr 15, 2020
1 parent ede6b63 commit 97529a4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions reference/configuration/tidb-server/configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,34 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
+ 默认值:""
+ 默认情况下,TiDB 版本号格式为:`5.7.${mysql_latest_minor_version}-TiDB-${tidb_version}`

<<<<<<< HEAD
=======
### `repair-mode`

+ 用于开启非可信修复模式,启动该模式后,可以过滤 `repair-table-list` 名单中坏表的加载。
+ 默认值:false
+ 默认情况下,不支持修复语法,默认启动时会加载所有表信息。

### `repair-table-list`

+ 配合 `repair-mode` 为 true 时使用,用于列出实例中需要修复的坏表的名单,该名单的写法为 ["db.table1","db.table2"...]
+ 默认值:[]
+ 默认情况下,该 list 名单为空,表示没有所需修复的坏表信息。

### `max-server-connections`

+ TiDB 中同时允许的最大客户端连接数,用于资源控制。
+ 默认值:0
+ 默认情况下,TiDB 不限制客户端连接数。当本配置项的值大于 `0` 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。

### `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 之前版本的兼容,添加了此配置项。

>>>>>>> 6050271... reference: add a description of max-index-length (#2748)
## log

日志相关的配置项。
Expand Down

0 comments on commit 97529a4

Please sign in to comment.