Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-variables: update the default value of datadir #13336

Merged
merged 15 commits into from Apr 25, 2023
6 changes: 4 additions & 2 deletions system-variables.md
Expand Up @@ -182,8 +182,10 @@ mysql> SELECT * FROM t1;
### datadir

- 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`](/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.

### ddl_slow_threshold

Expand Down