diff --git a/conf/tidb.yml b/conf/tidb.yml index dfb0d9aa6..de4b02832 100644 --- a/conf/tidb.yml +++ b/conf/tidb.yml @@ -48,6 +48,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: "" + log: # Log level: debug, info, warn, error, fatal. # level: "info" diff --git a/roles/tidb/vars/default.yml b/roles/tidb/vars/default.yml index 6234d467c..eec915cf6 100644 --- a/roles/tidb/vars/default.yml +++ b/roles/tidb/vars/default.yml @@ -60,6 +60,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: "" + log: # Log level: debug, info, warn, error, fatal. level: "info"