Documentation for JIRA 5.1.x. Documentation for other versions of JIRA is available too. 
![]()
Although HSQLDB is bundled with JIRA, we do not recommend it for production use. Please consider using one of the recommended databases instead. See Connecting JIRA to a Database for more information.
If you are setting up a completely new JIRA installation, the JIRA Setup Wizard will configure an HSQL database connection for you, by choosing the Internal Database Connection during the first step of the wizard.
他のサーバーへの JIRA の移行 を実行する場合は、XML backup としてデータをエクスポートしてください。その後、 Switching databases で説明されているように、元のデータベースから新しいデータベースへデータを移行できます。
On this page:
Skip this step if you installed a 'Recommended' distribution of JIRA, which (unlike JIRA WAR) includes the HSQLDB JDBC driver.
lib/ directory.There are two ways to configure your JIRA server to connect to your HSQL database:
注意:
The JIRA Configuration Tool is not available with JIRA WAR distributions.
config.bat in the bin subdirectory of the JIRA Installation Directory.config.sh in the bin subdirectory of the JIRA Installation Directory.JAVA_HOME environment variable to run the JIRA Configuration Tool. See Installing Java for details.To connect JIRA to HSQLDB using the JIRA Configuration Tool:
dbconfig.xml file in your JIRA Home Directory. This tool also adds the following elements to this file, which are normally required when running JIRA with HSQLDB:<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis><time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis>Congratulations — you have finished! Proceed to 'Next Steps' below.
Edit the dbconfig.xml file at the root of your JIRA Home Directory.
If this file does not exist, create the file, copy and paste the example XML code below into this file and edit the pasted XML as required.
注意:
Ensure that the <database-type/> element's content specifies your type of database, as shown below. If you forget to do this and you start JIRA, your database tables may be created incorrectly. Refer to our Incorrect database type specified documentation if this happens to you.
When editing your
dbconfig.xml file, escape any '&' characters by adding 'amp;' to the end of each one.
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>hsql</database-type>
<schema-name>PUBLIC</schema-name>
<jdbc-datasource>
<url>jdbc:hsqldb:C:\Program Files\Atlassian\Application Data\JIRA/database/jiradb</url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<username>sa</username>
<password></password>
<pool-min-size>20</pool-min-size>
<pool-max-size>20</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis>
<pool-max-idle>20</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
</jdbc-datasource>
</jira-database-config>
注意:
<jdbc-datasource/> element are normally required when running JIRA with HSQLDB:<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis><time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis><jdbc-datasource/> beginning with pool in the dbconfig.xml file above, see Tuning Database Connections.dbconfig.xml file (at the root of your JIRA Home Directory).You should now have JIRA configured to connect to your HSQL database.
JIRA and HSQL を参照してください。