JIRA Standalone连接MySQL数据库的配置教程

1. Configure MySQL,1.                   Create a database user which JIRA will connect as (e.g. jirauser). ,2.                   Create a database for JIRA to store issues in (e.g. jiradb). ,The database must have a character set of UTF8. Enter the following command from within the MySQL command client: ,
create database jiradb character set utf8;
,(if you want your database to be named jiradb). ,3.                   Ensure that the user has permission to connect to the database, and create and populate tables. ,   ,   ,2. Copy the MySQL driver to your application server,1.         Download the MySQL  Connector/J JDBC driver, eg. version 3.1.12 ( tar.gz or  zip) which we have verified to work. NOTE: the older 3.1.11 driver is  broken.,2.         Add the MySQL JDBC driver jar (mysql-connector-java-3.x.x-bin.jar) to the common/lib/ directory. NOTE: Do not place the Debug Driver (mysql-connector-java-3.x.x-bin-g.jar) on the CLASSPATH as this can cause issues ( JRA-8674). ,   ,3.      Configure your application server to connect to MySQL,1.         Edit conf/server.xml (if you are using JIRA Standalone) and customise the username, password, driverClassName and url parameters for the Datasource. (If you are using JIRA WAR/EAR, edit the appropriate file on your  application server; e.g. for Tomcat, edit conf/Catalina/localhost/jira.xml.),
<Context path="" docBase="${catalina.home}/atlassian-jira" 
  • 1.
  reloadable="false">
  • 1.
  <Resource name="jdbc/JiraDS" auth="Container" 
  • 1.
   type="javax.sql.DataSource"
  • 1.
      username="[enter db username]"
  • 1.
      password="[enter db password]"
  • 1.
      driverClassName="com.mysql.jdbc.Driver"
  • 1.
      url="jdbc:mysql://localhost:3306/jiradb?autoReconnect=true
  • 1.
     &amp;useUnicode=true&amp;characterEncoding=UTF8"
  • 1.
            [ Jiradb:前面为Jira创建的数据库名称 ]
  • 1.
            [ delete the minEvictableIdleTimeMillis and 
  • 1.
      timeBetweenEvictionRunsMillis params here ]
  • 1.
            />
  • 1.
            <Resource name="UserTransaction" auth="Container" 
  • 1.
            type="javax.transaction.UserTransaction" 
  • 1.
            factory="org.objectweb.jotm.UserTransactionFactory" 
  • 1.
            jotm.timeout="60"/>
  • 1.
          <Manager className="org.apache.catalina.
  • 1.
         session.PersistentManager" saveOnRestart="false"/>
  • 1.
        </Context>
  • 1.
,   ,   ,4.      Configure the JIRA Entity Engine,Edit atlassian-jira/WEB-INF/classes/entityengine.xml (if you are using JIRA Standalone) or edit-webapp/WEB-INF/classes/entityengine.xml (JIRA WAR/EAR), and change the field-type-name attribute to mysql. (If you forget to do this and start JIRA, it may create database tables incorrectly. See  this page if this happens to you.) Also delete the schema-name="PUBLIC" attribute, if it exists,   ,
<datasource name="defaultDS" field-type-name="mysql"
  • 1.
      [ delete this, if it exists: schema-name="PUBLIC" ]
  • 1.
      helper-class="org.ofbiz.core.entity.GenericHelperDAO"
  • 1.
      check-on-start="true"
  • 1.
      use-foreign-keys="false"
  • 1.
,   ,  
QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空