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.

Cheers,

Branden

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

Thanks,

Ed

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.

Cheers,

Branden

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.

Cheers,

Ed

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

504 views 1 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot