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: 

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

Karen Cheung
January 25, 2016

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Alex Yasurek
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.
January 25, 2016

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 

 

Karen Cheung
January 25, 2016
1 vote
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.
January 25, 2016

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"
/>
TAGS
AUG Leaders

Atlassian Community Events