データベースの切り替え
JIRA では以下のデータベースへ移行することができます:
- 同一データベース サーバー上の異なるデータベース
- 異なるサーバー上の同種類のデータベース (例. ある PostgreSQL サーバーから別の PostgreSQL サーバーへ)
- 異なる種類のデータベース サーバー (例. MySQL サーバーから PostgreSQL サーバーへ)
切り替えを実行するには、どちらか適切な手順に従ってください:
- JIRA のデータを同種類のデータベースに移行する (上記の 1 および 2 の場合)
- JIRA のデータを異なる種類のデータベース サーバーへ移行する (上記の 3 の場合)
JIRA のデータを同種類のデータベースに移行する
この手順に従うのは、JIRA のデータを次のデータベースに移行する場合です:
- 同一データベース サーバー上の異なるデータベース、または、
- 異なるデータベース サーバー上の同種類のデータベース (例. ある PostgreSQL サーバーから別の PostgreSQL サーバーへ)。
JIRA のデータを同種類のデータベースへ移行するには:
- お使いのデータベース サーバーのネイティブ ツールを使用して:
- 同一データベース サーバー インストール上の新規データベースに JIRA データベースをコピーする、または、
- Copy/migrate your JIRA database to a new database of the same type on a different database server installation.
Please Note:
- 上記のどちらの作業も実行できない場合は、代わりに、JIRA のデータを異なる種類のデータベース サーバーへ移行する 手順 (下記) に従ってください。
- この手順に従って、JIRA のデータを異なる種類のデータベース サーバーに移行することも可能です (例. MySQL から PostgreSQL へ)。しかし、この処理をサポートするツールを見つける必要があります。さらに、この方法に対してはアトラシアンはサポートを提供しません。
- 新規データベースへの JIRA データの追加が完了したら、JIRA サーバーをシャットダウンします。
- Make a backup of your JIRA Home Directory and JIRA Installation Directory.
- JIRA サーバーのデータベースへの接続を再設定します:
- If you installed a 'Recommended' distribution of JIRA, you can use the JIRA Configuration Tool (by running
bin/config.sh
(for Linux/Solaris) orbin\config.bat
(for Windows) in your JIRA Installation Directory), which provides a convenient GUI that allows you to reconfigure JIRA's database connection settings. - If any of the following points applies to your situation, you need to manually configure the
dbconfig.xml
file in your JIRA Home Directory. Refer to the appropriate database configuration guide in the Connecting JIRA to a Database section for the manual configuration instructions.- JIRA WAR を使用している
- コンソール限定で JIRA サーバーに接続している
- データベース接続を手動で設定することを希望する (設定のカスタマイズが目的で)
- If you installed a 'Recommended' distribution of JIRA, you can use the JIRA Configuration Tool (by running
JIRA のデータを異なる種類のデータベース サーバーへ移行する
JIRA のデータを異なる種類のデータベース サーバーに移行するには (例. MySQL サーバーから PostgreSQL サーバーへ)、次の手順に従ってください。
You can also use this procedure if your JIRA installation is currently using the internal HSQL database (which is only supported for evaluating JIRA) and you need to switch your JIRA installation across to using a supported database (which are supported for JIRA installations used in a production environment).
- Create an export of your data as an XML backup. See Backing Up Data for details.
Please note that JIRA's XML backup utility does not back up attachments (if you have attachments enabled).
- 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 サーバーをシャットダウンします。
- Make a backup of your JIRA Home Directory and JIRA Installation Directory.
- 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.
- (上記 2 で作成した) 新規データベースへの JIRA の接続を設定し、Next ボタンをクリックします。
- 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.
最終更新日 2012 年 6 月 8 日
Powered by Confluence and Scroll Viewport.