Note
This variable is only for compatibility. OceanBase Database does not currently support the functionality of 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-compatible mode) and the information_schema.GLOBAL_VARIABLES view (MySQL-compatible 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 |