MySQL Collation

Hi, does anyone know which MySQL collation type I should use for an Appian database? For example, utf8_general_ci, or utf8_bin?

  Discussion posts and replies are publicly visible

Parents
  • Hi both, thanks for the information. I have discovered that in page docs.appian.com/.../Configuring_Relational_Databases.html it says that you should use collation utf8mb4_unicode_ci but I don't know if this is for Appian data sources or for business data sources, or both?
  • +1
    Certified Lead Developer
    in reply to adamb940

    Good find! I believe the short answer is use utf8mb4_unicode_ci - for both the primary and business databases.

    Given Appian Cloud uses utf8_general_ci and the documentation says to use utf8mb4_unicode_ci, I did a quick bit of research and found this article, which suggests that utf8_general_ci shouldn't really be used anymore due to some character limitations. There's a lot more information at that link, but I'll let you read that yourself! I suppose another observation would be that Appian Cloud's MySQL configuration could be considered out-of-date; but it probably doesn't break anything... :)

    Interestingly, MySQL's default collation is actually latin1_swedish_ci - it seems because the person that built MySQL was Finnish, but head of a Swedish company! In my experience utf8_general_ci is a decent enough general purpose collation, but it ultimately depends on which languages you're going to be using - or more specifically, what range of characters you expect to store.

Reply
  • +1
    Certified Lead Developer
    in reply to adamb940

    Good find! I believe the short answer is use utf8mb4_unicode_ci - for both the primary and business databases.

    Given Appian Cloud uses utf8_general_ci and the documentation says to use utf8mb4_unicode_ci, I did a quick bit of research and found this article, which suggests that utf8_general_ci shouldn't really be used anymore due to some character limitations. There's a lot more information at that link, but I'll let you read that yourself! I suppose another observation would be that Appian Cloud's MySQL configuration could be considered out-of-date; but it probably doesn't break anything... :)

    Interestingly, MySQL's default collation is actually latin1_swedish_ci - it seems because the person that built MySQL was Finnish, but head of a Swedish company! In my experience utf8_general_ci is a decent enough general purpose collation, but it ultimately depends on which languages you're going to be using - or more specifically, what range of characters you expect to store.

Children
No Data