Overview
character_set_results specifies the character set to which the server converts result sets or error messages before sending them back to the client.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
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.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | String |
| Default Value | utf8mb4 |
| Value range |
|
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
| Whether it can be empty | Yes |
Configuration example
Set the character set to which the server should convert the result set or error message before sending it back to the client to utf8mb4.
Effective globally
obclient> SET GLOBAL character_set_results ='utf8mb4';Session expiration
obclient> SET character_set_results ='utf8mb4';