datadir

2025-11-14 07:33:33  Updated

Note

This variable is only for compatibility. OceanBase Database currently does not support this variable.

Description

datadir specifies the local disk path for storing data.

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 mode) or the information_schema.GLOBAL_VARIABLES view (MySQL mode) to obtain the values of Global system variables.

Attributes

Attribute Description
Type Varchar
Default value /usr/local/mysql/data/
Value range N/A
Scope Global

Contact Us