Why Confluence needs utf8_bin collation instead of another utf8 collation like utf8_hungarian_ci?

mdesign March 23, 2015

Confluence Health Checks alert says Problem Detected:

-----------------8<----------------------

What does this check do?

Checks if the collation used by the tables, columns and database defaults in your MySQL database is correct.

Result

Some tables or columns in the database are not using utf8_bin for their collation, or the default collation for the database is incorrect.

-----------------8<----------------------

Our collation set depending our locale (hu_HU), i don't see a problem here...

2 answers

2 votes
Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2015

Hey Károly,

I wasn't part of the architectural team however I do have a few ideas behind the decision of using utf8_bin collation, due to it's accuracy on sorting as UTF8 is based on the Unicode standard for sorting, and sorts accurately in a very wide range of languages. And performance since _ci adds a layer of complexity to joins, index builds, text searches and etc.

Additionally, hungarian is not the most popular setup used for mysql around the world, so they aimed for standard configuration to be used for testing during the development stage.

Additionally you will need to fix that (as per below page) before upgrading your Confluence to 5.6 series or else the upgrade will fail due invalid requirements:
Thanks and Regards,
David| The Engineer that like Windows for realsies.
0 votes
mdesign March 24, 2015

Dear @Deividi Luvison !

Thank you for the answer, then I modify it to utf8_bin just for sure...

 

Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2015

You are more than welcome :). Just mark this as answered so we can close this topic ;).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events