Change the Base URL of Jira server in the database

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

目的

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."

ソリューション

データベースの手動変更は危険な場合があります。これらの変更を試行する前にデータベースのバックアップを取得するようにしてください。


You can retrieve the base URL from the propertystring table:

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:

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

For MySQL:

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

For Oracle:

update propertystring
set propertyvalue='http://jira.servername.com'
where id=(select id from propertyentry where property_key = 'jira.baseurl');
説明 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.
製品Jira
プラットフォームServer
最終更新日 2020 年 4 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.