Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I modify the default collation configuration and have it take effect? #40899

Open
dongluo-smile opened this issue Sep 18, 2024 Discussed in #40873 · 0 comments
Open

Comments

@dongluo-smile
Copy link

dongluo-smile commented Sep 18, 2024

Discussed in #40873

Originally posted by dongluo-smile September 14, 2024
Through the SHOW CHARACTER SET; Command view display

Charset Description Default collation Maxlen
utf8mb4 UTF-8 Unicode utf8mb4_0900_bin 4

SHOW COLLATION; Command view display

Collation Charset Id Default Compiled Sortlen
utf8mb4_0900_bin utf8mb4 309 Yes Yes 1
utf8mb3_general_ci utf8mb3 33 Yes Yes 1

Problem: utf8mb4_0900_bin Collation rules cause case sensitivity when querying data, such as('ABC' != 'abc')

Expect: Change the default collation to utf8mb4_general_ci, query data is case insensitive, for example('ABC' == 'abc')

Modify the fe.conf and be.conf configuration files to add default_character_set = utf8mb4
default_collation = utf8mb4_general_ci And restart, found no effect.

May I ask you, how to configure it to make it effective?

@dongluo-smile dongluo-smile changed the title 如何修改默认的Default collation配置? How do I modify the default collation configuration and have it take effect? Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant