From 704f8bc5269a8de753a08814c70651736be028d5 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 25 Apr 2023 11:27:51 +0800 Subject: [PATCH] system-variables: update the default value of datadir (#13336) --- system-variables.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/system-variables.md b/system-variables.md index 9c23ff1b3835..c244bd97e6db 100644 --- a/system-variables.md +++ b/system-variables.md @@ -181,9 +181,25 @@ mysql> SELECT * FROM t1; ### datadir + + +- Scope: NONE +- Default value: it depends on the component and the deployment method. + - `/tmp/tidb`: when you set `"unistore"` for [`--store`](/command-line-flags-for-tidb-configuration.md#--store) or if you don't set `--store`. + - `${pd-ip}:${pd-port}`: when you use TiKV, which is the default storage engine for TiUP and TiDB Operator for Kubernetes deployments. +- This variable indicates the location where data is stored. This location can be a local path `/tmp/tidb`, or point to a PD server if the data is stored on TiKV. A value in the format of `${pd-ip}:${pd-port}` indicates the PD server that TiDB connects to on startup. + + + + + - Scope: NONE -- Default value: ${ip_address:port} -- A value in the format of `ip_address:port` indicates the PD server that TiDB connects to on startup. +- Default value: it depends on the component and the deployment method. + - `/tmp/tidb`: when you set `"unistore"` for [`--store`](https://docs.pingcap.com/tidb/stable/command-line-flags-for-tidb-configuration#--store) or if you don't set `--store`. + - `${pd-ip}:${pd-port}`: when you use TiKV, which is the default storage engine for TiUP and TiDB Operator for Kubernetes deployments. +- This variable indicates the location where data is stored. This location can be a local path `/tmp/tidb`, or point to a PD server if the data is stored on TiKV. A value in the format of `${pd-ip}:${pd-port}` indicates the PD server that TiDB connects to on startup. + + ### ddl_slow_threshold