The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting many Databases

Daniel Richli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2016

In Confluence administration I can setup the settings for one Reporting Connector for SQL Databases. How can I connect to several databases?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Jonas Andersson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 14, 2016

Hi,

You can append an infinite amount of SQL datasources in your server.xml using this format:

<Resource name="jdbc/DB-DATASOURCE-NAME"
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://SERVER-NAME:3306/DB-NAME?autoReconnect=true"
    username="DB-USERNAME"
    password="DB-PASSWORD"
    maxActive="25"
    maxIdle="5"
    maxWait="10000"
/>

This requires a confluence restart however. Bob swift made a plugin called SQL pro that allows to do this without restarts, but it will cost extra.

TAGS
AUG Leaders

Atlassian Community Events