tencent cloud

TDSQL Boundless

collation_server

PDF
Focus Mode
Font Size
Last updated: 2026-03-27 14:52:50

Feature Description

collation_server is used to set the default collation for the server. The collation determines how strings are compared and collated. Moreover, it is associated with character sets, such as utf8mb4_general_ci and utf8mb4_unicode_ci.
collation_server The main purpose of the parameter is:
Set the default string comparison and collation for the server. This is very important for processing strings containing special characters or accent marks, because different collations may result in different comparison and collation outcomes.
When strings are compared on the server, the collation_server parameter determines how the comparison is performed. For example, when SQL queries are executed, if strings in the WHERE clause are compared against column values on the server, the collation specified by the collation_server parameter will be used for the comparison.
It is generally recommended to use a collation that matches the character_set_server parameter.

Attribute Description

Required
Description
Parameter Type
ENUM
Default Value
utf8mb4_0900_ai_ci
Value Range
latin1_general_cs
latin1_general_ci
latin1_bin
latin1_swedish_ci
gbk_chinese_ci
gbk_bin
utf8_general_ci
utf8_bin
utf8_unicode_ci
utf8mb3_general_ci
utf8mb3_bin
utf8mb3_unicode_ci
utf8mb4_general_ci
utf8mb4_0900_ai_ci
utf8mb4_bin
utf8mb4_unicode_ci
gb18030_bin
gb18030_chinese_ci
gb18030_unicode_520_ci
Effective Scope
GLOBAL
SESSION
Restart Required
No

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback