先建立jira数据库以及账号密码:
mysql>
mysql> create database jira445;
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> GRANT ALL ON jira445.* TO jira_user@'%' IDENTIFIED BY 'jira_user1809';
Query OK, 0 rows affected (0.16 sec)
mysql>
在界面配置好数据库连接信息,如下图所示:
随手点击一下“Test Connection”测试下数据库连接,连接正常,如下所示:
点击下一按钮,报错如下:
Javax.servlet.ServletException: com.atlassian.util.concurrent.LazyReference$InitializationException: com.opensymphony.module.propertyset.PropertyImplementationException: SQL Exception while executing the following:SELECT ID, ENTITY_NAME, ENTITY_ID, PROPERTY_KEY, propertytype FROM propertyentry WHERE ENTITY_NAME=? AND ENTITY_ID=? (Table 'jira445.propertyentry' doesn't exist)
去下载:
# wget -c href="http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.29.tar.gz
# tar zxvf mysql-connector-java-5.1.29.tar.gz
将解压后目录中的mysql-connector-java-5.1.29-bin.jar拷贝到JIRA的lib目录/opt/atlassian-jira-4.4.5-standalone/lib/中
重启jira,还是报一样的错误。
去查看jira的error log信息,看到如下信息:
[root@name01 logs]# more /root/atlassian-jira-4.4.5-standalone/logs/catalina.out
……
CREATE TABLE portletconfiguration (ID DECIMAL(18,0) NOT NULL, PORTALPAGE DECIMAL(18,0), PORTLET_ID VARCHAR(255), COLUMN_NUMBER DECIMAL(9,0), positionseq DECIMAL(9,0), GADGET_XML TEXT, COLOR V
ARCHAR(255), CONSTRAINT PK_portletconfiguration PRIMARY KEY (ID))
Error was: java.sql.SQLException: The MySQL server is running with the --read-only option so it cannot execute this statement
【】将数据库设置成不是read-only的方式。
mysql> set global read_only =0;
Query OK, 0 rows affected (0.01 sec)
mysql>
之后重建jira445库,重启jira,再重新初始化数据库:
在下一页么,输入授权码:
授权码为:
AAABMQ0ODAoPeJxtUMlOwzAQvfsrLHF2laSlVStZwiQ+hGZTFlS4mTAFo8SJbKeif0/StAcQ0lxm3
rxl5q4cABfQY3c91m652a022C9K7DnuCgVgai17KztFn8KcoS+pxSIZ2jfQ6bEyoA0lLvI1iGknE
BboRCTOlrhr5HfKitomogXaNxN3Fhhn8gTU6gFuOzwWsqFWthPd2breg+3aRd21iJ9EM1zk6VE0B
maJSNagDJTnHi7yfhrHPPdDFv3C+bu8MHlS8jzLw4KjZkaex+wT4qHRWVlQQtXAv3upz/MZy+WGu
B7x7lHBE/qSVjhme45jjhkuWIAzlgRsgVL9IZQ0c8C+wRaMRQXoE+gwoI9pdSD8wPYkfQ0zcogyj
q7RRjQKg1v3v3M26PpTGPjz2B8tAYyAMCwCFGiKwG9qA+2ksL7mkMIrV80z+un8AhRu0CryeqTv8
LIZstOPg/B3240BnQ==X02fb
点击“下一”按钮,进行下一步操作,设置管理员账户,用户名admin密码admin
下一步,暂时不设置邮件通知:
点击下一步,报错如下3.6小节所示: