It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Connecting JIRA to MS SQL issues


My company is wanting to evaluate JIRA as a potential Issue/Bug Tracking tool, as well as to use it for our Agile development process, and Code Reviewing. We are trying to set up JIRA to connect to a MS SQL Express instance and have performed all the steps correctly for making the DB ready for JIRA and have verified that the user account created can access the newly created "jiradb". However, when we try to configure JIRA to connect to the DB with all the correct settings and click "Test Connection" we are always returned the Error of Connection refused... Any suggestions as to what the problem could be? The DB resides on the same machine as the JIRA install.


2 answers

1 accepted

0 votes
Answer accepted
Nic Brough Community Leader Dec 11, 2011

The application log file should tell you more about the "connection refused" error. If you've ruled out the actual settings being incorrect as you copy them into Jira, then you need to start looking at ports and firewalls (yes, even for a local machine)

if you go into your configuration manager (for the database - I don't have the exact name in front of me). Verify that you have enabled TCPIP and that you have the port 1433 enabled. I am away from my database right now so I don't know exactly where it is set, but I know that there is a place for the ports, and in express they are disabled by default (at least they have been in the past).

I see that this is now answered, but I will put the following in here anyhow, just in case someone wants the steps sometime in the future.

Do you also have the option (start -> programs -> sql server -> Configuration tool -> Configuration Manager
Open that tool. Ensure that under SQL Server Services, that your server is running.
Everything else is just the default. You can close out of this window.

When you are logged into SQL Server Management Studio, click on "Security" (NOT security within the database, but the higher level option).
Click on Logins. You should see your user listed.
Right mouse click on the username and choose Properties.
Click on the "User Mapping" option on the left. Verify that for the database listed, the user is in the user role of DB_Owner.
Basically if this is true, then you probably have the user set up properly.
Right mouse click on it and choose properties. "Log on as", should have the "Built-in account" set to be Network service.
Expand "SQL Server Network Configuration" Ensure that "Protocols for JIRA" <where JIRA is the name of your service> have "TCP/IP" enabled.
Right mouse click on it, and choose properties, ensure that the IP Address is enabled, and the TCP port is set to 1433.
Also ensure that under the Protocol tab, that it is set to enabled.

Now expand the "Databases" tab, and expand your database. If you click on Tables, you will probably not see any of the JIRA tables created. If you do, then we are definitely heading down a rabbit trail right now?let me know.
Expand "Security" and users, right click on the username, select properities. You should be able to see that the user is in the DB Owner role. This is just a double check, because I always error on the side of caution.
Under the "Sucurables" make sure that that the user has full permissions. I usually go right into the explicit ones, and add in Grant for everything

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

106 views 1 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you