Jira搭建遇到的坑

记录一下今天在安装jira**版遇到的坑

安装参考博客地址:https://www.cnblogs.com/cs_net/p/8322025.html

但上面的文章里面创建jira数据库语句有点问题,会导致后面配置jira数据库的时候报错,点击Next会跳到空白的错误页面

Jira搭建遇到的坑看后台报错日志是:

SQL Exception while executing the following:SELECT pluginkey, pluginenabled FROM pluginstate (Table 'jira.pluginstate' doesn't exist)

后面google了一下,下面两篇博客都有解决方案:

https://www.jianshu.com/p/13caf8d05f6a   这边总结的好啊:有问题去找官方文档,不要去随便找博客,深有体会

https://jira.atlassian.com/browse/JRACLOUD-37929

最后附上mysql创建jira数据库的正确语法:

create database jira default character set utf8 collate utf8_bin;

在Mysql中创建jira用户, 并允许远程登录.

grant all privileges on jira.* to 'jira'@'%' identified by 'you_password' with grant option;  

grant all privileges on jira.* to 'jira'@'localhost' identified by 'you_password' with grant option;

flush privileges;

exit;

service mysql restart;  --重启mysql