JIRA database switch (HSQL Database to MySQL)

 Because JIRA used the built-in HSQL for being lazy before, the HSQL content was recently migrated to MySQL, and the migration process is recorded here.

 

  1. Log in through the JIRA administrator, go to "Admin Page", "System" - "Import & Export", and back up data in XML format.
  2. Create a Schema in MySQL named jira
  3. Shut down the JIRA service
  4. Back up the JIRA installation directory and data directory
  5. Delete the file in the data directory of JIRA: dbconfig.xml
  6. Restart the JIRA service
  7. Access JIRA again, and the database configuration at the time of the first installation will appear again. Enter the MySQL address, user name, password, database name, etc. here. After the test connection is successful, click Next
  8. Select "import your existing data" to import the XML exported in the first step, thus completing the database migration.

The installation directory is the directory selected during installation, which is not described in detail here.

The data directory may not be well understood if you are just starting to use it. It mainly stores import and export data, attachments, etc. The reference path is as follows:

  • C:\Program Files\Atlassian\Application Data\JIRA(on Windows) or
  • /var/atlassian/application-data/jira(on Linux)

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326612592&siteId=291194637