Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

config, roles: add config of server-version (#1231) #1241

Merged
merged 1 commit into from
Mar 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions conf/tidb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ global:
# the data type of its primary key column is an integer, the primary key cannot be dropped.
# alter-primary-key: false

# server-version is used to change the version string of TiDB in the following scenarios:
# 1. the server version returned by builtin-function `VERSION()`.
# 2. the server version filled in handshake packets of MySQL Connection Protocol, see https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake for more details.
# if server-version = "", the default value(original TiDB version string) is used.
server-version: ""

# max-index-length is used to deal with compatibility issues from v3.0.7 and previous version upgrades. It can only be in [3072, 3072*4].
# max-index-length: 3072

Expand Down
6 changes: 6 additions & 0 deletions roles/tidb/vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ global:
# the data type of its primary key column is an integer, the primary key cannot be dropped.
alter-primary-key: false

# server-version is used to change the version string of TiDB in the following scenarios:
# 1. the server version returned by builtin-function `VERSION()`.
# 2. the server version filled in handshake packets of MySQL Connection Protocol, see https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake for more details.
# if server-version = "", the default value(original TiDB version string) is used.
server-version: ""

# max-index-length is used to deal with compatibility issues from v3.0.7 and previous version upgrades. It can only be in [3072, 3072*4].
max-index-length: 3072

Expand Down