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 votes

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
Community showcase
Published Jan 29, 2019 in Jira Software

Transforming Jira Software projects for general project management purposes

...It's true that there are projects in Jira; but they are merely a way to cut off issues, to tell them apart from other sections of work and to apply rules that are specific to that team (the schemes)....

174 views 0 6
Read article

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