Setup Database Failed for Confluence

Hello,

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 https://confluence.atlassian.com/doc/database-setup-for-sql-server-9258.html.

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

net.sourceforge.jtds.jdbc.Driver

jdbc:jtds:sqlserver://localhost:1433/<insert_database>

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,

Roxana

 

 

 

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 127.0.0.1 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 

Hello,

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,

Regards

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

377 views 16 9
Join discussion

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