Change the Base URL of Jira server in the database

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

You may come across situations where you're unable to edit the Base URL through the UI. This article walks through the process of updating the Base URL through the database. An example error in the UI

"Your session has expired. You may need to re-submit the form or reload the page."

Solution

Manual manipulation of the database can be dangerous. Please make sure you have a backup of your database before you attempt these changes.

You can retrieve the base URL from the propertystring table:

1 2 3 select propertyvalue from propertyentry PE join propertystring PS on PE.id=PS.id where PE.property_key = 'jira.baseurl';

In order to update the Base URL, run the following update in your JIRA database replacing the URL and restart JIRA.

For PostgresSQL:

1 2 3 4 5 update propertystring set propertyvalue = 'http://jira.servername.com' from propertyentry PE where PE.id=propertystring.id and PE.property_key = 'jira.baseurl';

For MySQL:

1 2 3 4 update propertystring, propertyentry  set propertystring.propertyvalue = 'http://jira.servername.com'  where propertystring.ID = propertyentry.ID  and propertyentry.PROPERTY_KEY = 'jira.baseurl'

For Oracle:

1 2 3 update propertystring set propertyvalue='http://jira.servername.com' where id=(select id from propertyentry where property_key = 'jira.baseurl');
Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.