Skip to content

Commit

Permalink
system-variables: update the default value of datadir (#13336)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd committed Apr 25, 2023
1 parent 039a755 commit 704f8bc
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions system-variables.md
Expand Up @@ -181,9 +181,25 @@ mysql> SELECT * FROM t1;

### datadir

<CustomContent platform="tidb">

- 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.

</CustomContent>

<CustomContent platform="tidb-cloud">

- 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.

</CustomContent>

### ddl_slow_threshold

Expand Down

0 comments on commit 704f8bc

Please sign in to comment.