Forums

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

Can I change the database link?

tex.clark@gettyimages.com
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!
October 18, 2018

Hello Atlassian Confluence community,

  I have a Confluence instance pointing to a database that will move to a new server:
Current link:

jdbc:jtds:sqlserver://current.mycompany.com/Confluence

Need to change to this:

jdbc:jtds:sqlserver://new.mycompany.com.com/Confluence

 

  Unable to find this in the docs or online.  Is this even possible?  If so, how?

 

Thank you,

Tex

3 answers

2 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
October 18, 2018

To do this, you need to ensure the new database is an exact copy of the old one (i.e shut down confluence and then duplicate it), then you can edit the confluence.cfg.xml file to change the url.

0 votes
Answer accepted
JP _AC Bielefeld Leader_
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.
October 18, 2018

Hi,

if the DB server is EXACTLY same version & the database is an EXACT copy and the DB server has the same security & db users, it going to work.

Try on a staging / test server before is always a good idea!

Best

JP

0 votes
tex.clark@gettyimages.com
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!
October 19, 2018

Jan-Peter and Nic,

  Confluence is working now.  Turns out that yes, you can point Confluence to another database.  That was the first question.  The second question was how to do that.  The answer is to edit the confluence.cfg.xml file to change the destination.

Then, the new DB has to be exactly the same.  However, in this situation the DB moved from SQL on a Windows 2008R2 to Windows 2012.  As a result, "allow 2008r2 database compatibility" also has to be enabled/configured on the DB server.  Also, the "make the login on new server fully the same as on old" also has to be enabled/configured.

The database stuff is more than I know, just repeating what I heard.

Bottom line is that Confluence is now working on the new database.

Thank you both for the response- pushed me in the right direction.  Much appreciated!

Tex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events