Should we change all JIRA's database tables character set to utf8 and collation to utf8_bin?

As per https://confluence.atlassian.com/display/AGILEKB/Optimising+Performance database collation must be properly set. Is the correct character set utf8 and collation utf8_bin? Thanks. We are using JIRA 6.3.4 and MySQL.

4 answers

This widget could not be displayed.

The reason for the question is upon checking our JIRA 6.3.4's database tables, some has latin1_swedish_ci and utf8_unicode_ci for collations. Is this a bad thing? Thanks.

This widget could not be displayed.

depends. IMHO you need to change it if you plan to support multiple langs.

This widget could not be displayed.

In many cases converting is required.
I was using this comandline to convert existing database from utf8_general_ci to utf8_bin:

DB="your_database_name"; ( echo 'ALTER DATABASE `'"$DB"'` CHARACTER SET utf8 COLLATE utf8_bin;'; mysql "$DB" -e "SHOW TABLES" --batch --skip-column-names | xargs -I{} echo 'ALTER TABLE `'{}'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;' ) | mysql "$DB"

 Open terminal, paste this in and hit enter. Wait little bit while job is done. TA-DAA!!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
Join discussion

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