Skip to content

Commit

Permalink
system-variables: update the default value of datadir (#13791) (#13796)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 25, 2023
1 parent 5e00c80 commit 7242b9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ mysql> SELECT * FROM t1;
### `datadir`

- 作用域:NONE
- 默认值:${ip_address:port}
- 变量值的格式为 `ip_address:port`,表示 TiDB 在启动时连接到的 PD 服务器。
- 默认值:使用的组件和部署方式不同,默认值也不同。
- `/tmp/tidb`:如果你将 [`--store`](/command-line-flags-for-tidb-configuration.md#--store) 设置为 `"unistore"` 或没有设置 `--store`,则默认值为 `/tmp/tidb`
- `${pd-ip}:${pd-port}`:如果你设置的存储引擎是 TiKV(如果使用 TiUP 和 TiDB Operator 部署,则默认的存储引擎为 TiKV),则默认值为 `${pd-ip}:${pd-port}`
- 这个变量表示数据存储的位置,位置可以是本地路径 `/tmp/tidb`。如果数据存储在 TiKV 上,则可以是指向 PD 服务器的路径。变量值的格式为 `${pd-ip}:${pd-port}`,表示 TiDB 在启动时连接到的 PD 服务器。

### `ddl_slow_threshold`

Expand Down

0 comments on commit 7242b9a

Please sign in to comment.