Note
This variable is for compatibility only. OceanBase Database does not support this variable.
Description
datadir specifies the local disk path where data is stored.
Privilege requirements
The sys tenant and all user tenants can execute the SHOW VARIABLES statement or query the SYS.TENANT_VIRTUAL_GLOBAL_VARIABLE view (Oracle-compatible mode) or the information_schema.GLOBAL_VARIABLES view (MySQL-compatible mode) to view the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Type | varchar |
| Default value | /usr/local/mysql/data/ |
| Value range | N/A |
| Scope | Global |
| Modifiable | No |
