Wrong JDBC path defining

vivuu January 20, 2018

Hi ,

 

We would need immediate help on this issue.

 

 

We are migrating our atlassian application and while setting up the JDBC path for the applications we are facing below issue.

 

We are not sure whether we are correct with below configuration.(port arrangements and slashes)

Confluence

___________

Jdbc:jtds:sqlserver://CBDBSSDCD102.xxx.yyyyy.com:14400\ATT/Confluence_DB

 

Where ATT is MSSQL instance, port 14000, DB name is Confluence_DB, DB server -CBDBSSDCD102.xxx.yyyyy.com 

 

JIRA

_______

 

mssql jdbc:jtds:sqlserver:// CBDBSSDCD102.xxx.yyyyy.com:14401\JIR/JIRA_DB

Where JIR is MSSQL instance name.

 

BitBucket

jdbc:sqlserver://CBDBSSDCD102.xxx.yyyy.com:14400\ATT;databaseName=bitbucket

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2018

Hi Vivuu,

  • What version of JIRA are you using?
  • What version of MSSQL are you using?

In regards to JIRA, there is a knowledge base article titled Updating JDBC URL for Microsoft SQL Server that should help with this. 

<url>jdbc:sqlserver://sqlserver_hostname:1433;databaseName=jiradb</url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>

In some cases, we've seen users unable to start JIRA, as JIRA reported it could not open the database requested by the login which would cause JIRA's startup to fail. In some environments, the login request doesn't get passed the correct instance. Removing the port number and specifying an instance name should allow the connection to succeed.

The old scheme was:

<url>jdbc:jtds:sqlserver://sqlserver_hostname:1433/jiradb;instance=instance_name</url>

In the new scheme, this would be:

<url>jdbc:sqlserver://sqlserver_hostname\instance_name:1433;databaseName=jiradb</url>

However, the login request appeared to be being passed to an incorrect instance - and thus the following was used:

<url>jdbc:sqlserver://sqlserver_hostname\instance_name;databaseName=jiradb</url>

 

In regards to the other services I would create questions and put them in their repective collections, however, here are some resources to help you get started:

Hopefully this helps.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer