Change URL's in database


I will have to change DNS name which is used by our confluence and jira.

My users are often adding links in confluence to some pages in jira. This URL’s won’t work anymore after changing DNS names used my applications.

It’s too much links to change it manually, so I would like to change it directly in database.
I already changed links in tables: confluence.LINKS and confluence.EXTRNLNKS but I still see old URL’s on some confluence pages content.

Could someone tell me where is content of the sites stored?

I checked table confluence.content but I don’t see my URL’s there.

best regards
Karolina Radziwon

2 answers

1 accepted

0 votes
Answer accepted


Your link was usefull, I finally found table which I need:

update confluence.BODYCONTENT set BODY = REPLACE(cast(BODY as nvarchar(max)),'/OLD_URL/','/NEW_URL/') where BODY like '%OLD_URL%';

Thank you :)


Hi Karolina, are you refering to the links inserted by JIRA Issue macro? if so, they may be changed automatically once you recreate the application link between JIRA and Confluence. However, if they don't update, you may follow the steps here (just don't forget to make a database backup).


Hello Tiago,
Thank you very much for answer. Links created by Application Links are not a problem, I already changed them.

I’m talking about static links which are inside of confluence sites content.
Unfortunately my users created lots of links like this to tickets in JIRA, and sometimes even to other sites in confluence.
I would like to change this URL’s for them. It’s not a problem to do this using SQL, but I’m not sure where to find site’s content.

As I said I change links in two tables, but it’s not enough.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

259 views 2 10
Read article

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