Overview
read_only specifies whether the tenant is in read-only mode.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | OFF |
| Value range |
|
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
After this variable is set, it will affect all regular users under the tenant, but not users with root privileges.
Configuration example
Set the tenant to read/write mode.
obclient> SET GLOBAL read_only = OFF;