Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68926

MySQL 5.7 running utf8mb4_bin throws Health Check error

      Summary

      With https://jira.atlassian.com/browse/JRASERVER-36135 we began officially supporting the MySQL 5.7 with the utf8mb4 collation.

      The documentation can be found here: Connecting Jira applications to MySQL 5.7

      However, using this supported platform in Jira 8 still prompts the following Health Check warning:

      Your mysql database is currently using an unsupported collation: utf8mb4_bin. You should change this to a supported collation: utf8_bin
      

      Environment

      Steps to Reproduce

      1. Install Jira 8
      2. Set database-type to mysql in dbconfig.xml ( this is not correct )
      3. Setup MySQL 5.7 as outlined in Connecting Jira applications to MySQL 5.7

      Expected Results

      Jira 8 runs using the supported database collation without errors.

      Actual Results

      The following error is thrown on startup:

      Your MySQL database is currently using an unsupported collation: utf8mb4_bin. You should change this to a supported collation: utf8_bin
      

      Screenshot:

      Fix

      To resolve the issue, you can run config.sh/bat to update your dbconfig.xml, or manually change database-type from mysql to mysql57 in your dbconfig.xml file.

      This is discussed in Connecting Jira applications to MySQL 5.7

      Only works in JIRA 8.

          Form Name

            [JRASERVER-68926] MySQL 5.7 running utf8mb4_bin throws Health Check error

            Metin Savignano added a comment - - edited

            I see the same error when upgrading from 7.13 to 8.13.10, although collation-server is in fact set to utf8mb4_bin and <database-type>mysql57</database-type> is set in dbconfig.xml

            Addendum:

            It turned out that, while the database server's default collation was correct, the database collation was still wrong. Fixed that, then the warning was gone.

            Metin Savignano added a comment - - edited I see the same error when upgrading from 7.13 to 8.13.10, although collation-server is in fact set to utf8mb4_bin and   <database-type>mysql57</database-type> is set in dbconfig.xml Addendum: It turned out that, while the database server's default collation was correct, the database collation was still wrong. Fixed that, then the warning was gone.

            Chihara added a comment - - edited

            Atlassian,
            I see this error on 8.13.0 after updating from 7.13.

            Workaround:
            edit dbocnfig.xml as below;
            <database-type>mysql57</database-type>

            Chihara added a comment - - edited Atlassian, I see this error on 8.13.0 after updating from 7.13. Workaround: edit dbocnfig.xml as below; <database-type>mysql57</database-type>

            Ivan Lay added a comment -

            This bug is resolved. It was actually a documentation bug. To resolve the issue, you can run config.sh/bat to update your dbconfig.xml, or manually change database-type from mysql to mysql57.

            This is discussed in Connecting Jira applications to MySQL 5.7

            Ivan Lay added a comment - This bug is resolved. It was actually a documentation bug. To resolve the issue, you can run config.sh/bat to update your dbconfig.xml , or manually change database-type from mysql to mysql57 . This is discussed in Connecting Jira applications to MySQL 5.7

            TRANSATEL added a comment -

            affects version 8.0.2 as well

            TRANSATEL added a comment - affects version 8.0.2 as well

            tbartyzel can you please close this ticket when you update DOC  

            Cheers,
            Marcin

            Marcin Masiorski (Inactive) added a comment - tbartyzel can you please close this ticket when you update DOC   Cheers, Marcin

            Ivan Lay added a comment - https://getsupport.atlassian.com/browse/GHS-143862 https://getsupport.atlassian.com/browse/GHS-143632 https://getsupport.atlassian.com/browse/GHS-142465 https://getsupport.atlassian.com/browse/GHS-140101

              mmasiorski Marcin Masiorski (Inactive)
              ilay Ivan Lay
              Affected customers:
              2 This affects my team
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: