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

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

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.

Dear @Deividi Luvison !

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

 

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
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,184 views 4 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you