Bitbucket Server Trial: Could not establish database connection

My JIRA Software is connected to the same database, only in its Database Name I put 'jiradb;instance=JIRA' instead of just 'jiradb'.

Screen Shot 2017-08-02 at 21.28.57.png


1 answer

0 vote

Hi Eduardo,

Bitbucket and JIRA have different requirements in regards to databases.  In the Connecting Bitbucket Server to SQL Server documentation under Set the collation type you will see that Bitbucket requires this should be case-sensitive, for example, 'SQL_Latin1_General_CP1_CS_AS' (CS = Case Sensitive).

In the Connecting JIRA applications to SQL Server 2012 documentation you will see it requires a case-insensitive collation:

Collation type must be case-insensitive. We support 'SQL_Latin1_General_CP437_CI_AI' and 'Latin1_General_CI_AI' as case-insensitive, accent-insensitive, and language neutral collation types. If your SQL Server installation's collation type settings have not been changed from their defaults, check the collation type settings.

At this point you will need to create a database per the instructions in Connecting Bitbucket Server to SQL Server.



Hi Brendan,

I believe the instruction below refers to the database I just created when I was connecting JIRA applications to SQL Server 2012. The database collation was set to 'SQL_Latin1_General_CP437_CI_AI'Screen Shot 2017-08-03 at 11.11.24.pngBut looking at the Server Collation the value is 'SQL_Latin1_General_CP1_CI_AS'. Do I need to change the Server Collation, is this what you meant?

Screen Shot 2017-08-03 at 11.16.29.png



Hi Ed,

If you are connecting your JIRA instance to that database that is fine as that is the correct collation for JIRA.

You will need to create a second database for BitBucket and make the collation for that SQL_Latin1_General_CP1_CS_AS.

As you can see the main differnce is the CI as oppsed to the CS which indicates case sensitivity.



Hi Branden,

Thank you for the response. Yes, I recognize the difference between the two, I just thought Bitbucket and JIRA Software would use one and the same database. If that's what BitBucket requires (as I reviewed and reread that you stated it in your first sentence in your first reply), then there'd be no other way but to create another database.



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
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,059 views 15 13
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