Actual Operation Process and precautions for JIRA + MySQL Configuration

Source: Internet
Author: User

The following article mainly describes the actual operation process of JIRA + MySQL configuration and the sample code used in actual operations, there are also descriptions of the things that deserve our attention in actual operations. The following is a detailed description of the article. I hope you will gain some benefits.

1. After JDK, JIRA, and MySQL are installed, stop the JIRA service.

Create a database:

 
 
  1. mysql  
  2. create database jiradb character set ‘UTF8′; 

Create a user and grant permissions:

 
 
  1. create user jirauser identified by ‘jira’;  
  2. grant all privileges on *.* to ‘jirauser’@'%’ identified by ‘jira’ with grant option;  
  3. grant all privileges on *.* to ‘jirauser’@'localhost’ identified by ‘jira’ with grant option;  
  4. flush privileges; 

2. Modify the JIRA Port

JIRA is integrated on Tomcat, so the method for modifying the port is the same as that for modifying the port of Tomcat.

3. The default database used by JIRA is HSql. to migrate data to MySQL, use the following JIRA + MySQL configuration changes.

1) Modify server. xml (Path:/jira/conf/server. xml)

Row 3:

 
 
  1. Username = "jirauser"
  2. Password = "780824 ″
  3. DriverClassName = "com. mysql. jdbc. Driver"
  4. Url = "jdbc: mysql: // localhost: 3306/jiradb? AutoReconnect = true & amp; useUnicode = true & amp; characterEncoding = UTF8 ″
  5. (Delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis item)
  6. MaxActive = "20 ″
  7. ValidationQuery = "select 1"/>

Note: The above "localhost" can be changed to the host name or "Host IP: Port", and the mysql port number is "3306".

B. Modify entityengine. xml (Path:/jira/atlassian-jira/WEB-INF/classes/entityengine. xml)

Change row 100th:

 
 
  1. <Datasource name = "defaultDS" field-type-name = "mysql"
  2. Delete schema-name = "PUBLIC"

4. Install the connection Driver package Mysql JDBC Driver

 
 
  1. cp mysql-connector-java-5.1.7-bin.jar /jira/common/lib/ 

5. Start the JIRA service.

Now the JIRA database is MySQL.

If you want to go further, add the MySQL service to the dependent service of the JIRA service, you can update it in the registry.

 
 
  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JIRA240209102746 

Because the JIRA service name is too long and the name is randomly generated in the registry, add a DependOnService multi-text key value in the base and add the MySQL service name.

The result is that JIRA depends on MySQL. JIRA is started after MySQL is started. If MySQL is stopped, JIRA is stopped before MySQL.

The above content is an introduction to JIRA + MySQL configuration. I hope you will have some gains.

Original article title: JIRA + MySQL Configuration

Connection: http://www.cnblogs.com/gaotianle/archive/2009/10/27/1590659.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.