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

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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events