Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TIDB 如何修改默认的数据库编码排序规则?
[TiDB Usage Environment] Production Environment / Testing / PCO
[TiDB Version]
[Encountered Problem]
In MySQL, you can modify the configuration file with:
collation-server = utf8mb4_general_ci
However, this configuration is not available in the TiDB configuration file.
Modifying it through SQL also does not take effect:
set @@global.collation_server='utf8mb4_general_ci';
[Reproduction Path] Operations performed that led to the issue
[Problem Phenomenon and Impact]
[Attachments]
Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.