2010年三月
« 十二    
1234567
891011121314
15161718192021
22232425262728
293031  

GFC

GFC留言

51la

【转载】JIRA+MySQL配置

JIRA+MySQL配置

1、JDK、JIRA、MySQL安装完毕,停止JIRA服务

创建数据库:
mysql
create database jiradb character set ‘UTF8′;

创建用户并赋与权限:
create user jirauser identified by ‘jira’;
grant all privileges on *.* to ‘jirauser’@’%’ identified by ‘jira’ with grant option;
grant all privileges on *.* to ‘jirauser’@’localhost’ identified by ‘jira’ with grant option;
flush privileges;

2、修改JIRA端口

JIRA是集成在Tomcat上面的,所以修改端口的方法和Tomcat修改端口的方法是一样的。

3、JIRA默认使用的数据库是HSql,如果要迁移到MySQL,可以通过以下的配置改动。

1)修改server.xml (路径:/jira/conf/server.xml)

第13行:
username=”jirauser”
password=”780824″
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost:3306/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8″
(删除minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis项 )
maxActive=”20″

validationQuery=”select 1″/>

注:以上“localhost”可不该,也可改为主机名或设为”主机IP:端口“,mysql端口号为”3306“。

b)修改entityengine.xml (路径:/jira/atlassian-jira/WEB-INF/classes/entityengine.xml)

第100行修改为:

Private