How to connect Confluence to external database to read from the database?

Is there a way/plugin to connect to an external database (SQL Server) with company data?

I would like to connect with and read from the database.

2 answers

Hi,

There are plugins that can do that on the marketplace. Here is a popular one:

 https://marketplace.atlassian.com/plugins/org.swift.confluence.sql/server/overview 

 

Just adding a data source can be done in the server.xml if you don't want to pay a license for it, and are prepared to restart the server when adding or removing data sources.

<Resource name="jdbc/DATASOURCE_NAME_GOES_HERE"
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://DB_SERVER_NAME_HERE:3306/DB_NAME_HERE?autoReconnect=true"
    username="USERNAME_HERE"
    password="PASSWORD_HERE"
    maxActive="25"
    maxIdle="5"
    maxWait="10000"
/>

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,289 views 25 10
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