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