Note
This variable is available starting with V1.4.
Description
character_set_system specifies the character set used by the server.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the value of a global system variable.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to obtain the value of a session system variable.
Modify variables
You cannot modify the value of this variable.
Attributes
| Attribute | Description |
|---|---|
| Type | String |
| Default value | utf8mb4 |
| Scope |
|
| Modifiable | No. This variable is read-only. |
Examples
Query the character set used by the server.
obclient> SHOW GLOBAL VARIABLES LIKE 'character_set_system';
The query result is as follows:
+----------------------+---------+
| Variable_name | Value |
+----------------------+---------+
| character_set_system | utf8mb4 |
+----------------------+---------+