Converting from default DBs to MySQLs for both JIRA&Confluence

After reviewing the documentation, Atlassian recommends binary logging format of “ROW”.  The default in MySQL is “STATEMENT” but we use binary logging format of “MIXED” which should be able to support both “ROW” and “STATEMENT” types of formats.  Is using “MIXED”  a supported configuration?

1 answer

We use one MySQL instance with 5 different databases for our Atlassian tools, which include JIRA and confluence.  It's worked great out of the box (standard defaults), with the exception of these few minor steps: 

Install mysql  

sudo vi /etc/mysql/my.cnf and edit bind-address=

chown mysql:mysql /var/run/mysqld/

service mysql start

login to mysql:   $mysql -u root –p

mysql> SET GLOBAL storage_engine = 'InnoDB';               

mysql> CREATE DATABASE <dbname> CHARACTER SET utf8 COLLATE utf8_bin;


mysql> GRANT ALL PRIVILEGES ON <dbname>.* TO '<tooluser>'@'<ipaddress>' IDENTIFIED  BY '<password>';

Put the mysql java connector on the application server.  (You can download it from the web).  <installationdirectory>/lib/mysql-connector-java-5.1.23-bin.jar

If you monitor the logs you'll get warnings and recommendations for how to further tweek it if necessary.  But the above simple setup has been running fine for us for several years without any issues.

 On a side note: Atlassian has moved the mysql*.jar location in stash 3.8.0 to live under $STASH_HOME/lib (also moved its server.xml file to a home location).  I'm not sure if other Atlassian tools will follow suit in future releases, but keep a look out for a possible new location for the mysql*.jar.  I look forward to these changes because it's helpful to have the configuration files under home instead of the inst so your customizations won't get over written during upgrades.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

785 views 2 19
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