Setup Database Failed for Confluence


I installed Confluence version 5.4.9 as a service, on a Windows Server 2012 R2.

I have a Microsoft SQL database installed on the same server and i made the setup i found here

When i went to the setup wizard of Confluence database, i choose Direct JDBC:



The port should be 1433? 

I also downloaded the jTDS 1.2.2 driver and copy jtds-1.2.2.jar file in confluence "bin" installation folder path (is this the right location?).

When i enter my database name and credentials, i receive this error:

image2016-2-18 11:33:55.png

I tried some tricks i found on forums but nothing worked (TCP-IP enabled on port 1433 in the SQL server configuration manager, I reinstalled it - nothing worked)

Firewall is disabled.

Is there another way to test the connection with the database?

Can you, please, advice what should be done in this case, or if i should perform other steps in the installation?


Best regards,





1 answer

  • First try to connect outside of Confluence i.e. using the SQL Management Studio via TCP on localhost:1433
  • Check on which IP you've enabled the TCP connections if it's or the actual IP of the host - SQL server might not allow connections on 1433 on different than the configured IP
  • Before going back to Confluence first ensure you're able to connect to the MSSQL server with another tool (like the SQL Management studio) using TCP on the spcified port and the user/pass you intend to use with Confluence 


Thank you for your reply!

I could connect to the MSSQL with SQL Management studio with the user i used for Confluence and it worked, but didn't for Confluence.

The Port 1433 was configured for the IP of my server.

I solved the problem by leaving blank the TCP Dynamic Ports in the IP configuration.

Now, i manage to connect and all works well.


Thank you,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,498 views 4 13
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