JIRA安裝時使用默認內置的h2數據庫,使用一段時候后,需要切換到其他類型數據庫
支持的數據庫類型和版本
- 備份系統已有數據
Create an export of your data as an XML backup.
- 新建JIRA數據庫
Create a new database on your new database server to house JIRA's data. See the appropriate database configuration guide in the Connecting JIRA to a database section for the database creation instructions.
- 停止JIRA服務,並備份JIRA目錄
Shut down your JIRA server.
Make a backup of your JIRA home directory and JIRA installation directory.
- 刪除dbconfig.xml文件,重啟JIRA進入配置向導頁
Delete the dbconfig.xml
file in your JIRA home directory.
Restart JIRA and you should see the first step of the JIRA setup wizard for configuring your database connection.
- 配置連接到新的數據庫
Configure JIRA's connection to your new database (created in step 2 above) and click the 'Next' button.
- 導入備份數據
On the 'Application Properties' setup page, click the 'import your existing data' link and restore your data from the XML backup created in step 1 above.