JIRA database switch (HSQLDatabase to MySQL) original address: http://didimoon.blogcn.com/articles/jiraswitchdb.html
Due to the previous lazy JIRA's use of the built-in HSQL, recently migrated the HSQL content to MySQL. here we record the migration process.
- Log on as a JIRA administrator and go to the "administrator page", "system"-"Import & Export" to back up data in XML format.
- Create a Schema in MySQL and name it jira.
- Disable JIRA Service
- Back up the JIRA installation directory and data directory.
- Delete the file dbconfig. xml in the JIRA data directory.
- Restart the JIRA service.
- Access JIRA again, and the database configuration for the first installation will appear again. Enter the MySQL address, user name, password, and database name. after the connection test is successful, click next.
- Select import your existing data to import the XML exported in the first step. the database migration has been completed.
The installation directory is the directory selected during installation, which is not detailed here.
The data directory may not be easy to understand at the beginning. it mainly stores imported and exported data, attachments, and other content. The reference path is as follows:
C:/Program Files/Atlassian/Application Data/JIRA
(On Windows) or
/Var/atlassian/application-data/jira
(On Linux)