From 45779039a67ac5913a4598cd03e96ea47f5fa007 Mon Sep 17 00:00:00 2001 From: guoni Date: Thu, 26 Mar 2020 16:53:20 +0800 Subject: [PATCH] add config of server-version --- conf/tidb.yml | 6 ++++++ roles/tidb/vars/default.yml | 6 ++++++ 2 files changed, 12 insertions(+) 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"