分享

atlassian

 instl 2018-08-08

安装过程网上资料很多,这里不再搬砖,只记录下遇到的问题:

1. 在配置数据库页面,测试连接时报错,尝试在命令行下登陆,报错信息如下:

  1. [***@localhost ~]$ mysql -ujira -pjirapasswd
  2. ERROR 1045 (28000): Access denied for user 'jira'@'localhost' (using password: YES)

在网上翻阅资料后多是说密码或加密或权限问题,在翻阅歪果仁网站时找到问题原因:

按照网上安装方法创建jira数据库后数据库多了一条jira的用户,

  1. MariaDB [mysql]> select host,user,password from user ;
  2. +-----------------------+------+-------------------------------------------+
  3. | host | user | password |
  4. +-----------------------+------+-------------------------------------------+
  5. | localhost | root | *A101EAAAE07FFA75FDF2AF4665D3480F15198C43 |
  6. | localhost.localdomain | root | |
  7. | 127.0.0.1 | root | |
  8. | ::1 | root | |
  9. | localhost | | |
  10. | localhost.localdomain | | |
  11. | % | jira | *BEE5CFA96B5FDBD262E3B38F0A341B6BF87C3565 |
  12. +-----------------------+------+-------------------------------------------+
  13. 7 rows in set (0.00 sec)

一般情况下,jira会和MySQL安装在同一台主机上,配置jira时用127.0.0.1的地址,此时就会报上边提到的错误,以为"%"只能通配"localhost"或非"127.0.0.1"的地址,因此会报上面的错误。

有2种方法改善:

-1. 我们在配置jira时,可以把地址写为非"localhost"或非"127.0.0.1"的地址;

  1. [***@localhost ~]$ mysql -ujira -pjirapasswd -h10.26.2.74
  2. Welcome to the MariaDB monitor. Commands end with ; or \g.
  3. Your MariaDB connection id is 33
  4. Server version: 5.5.56-MariaDB MariaDB Server
  5. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
  6. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  7. MariaDB [(none)]>

-2. 执行下面命令:

  1. MariaDB [mysql]> grant all on jira.* to jira@'localhost ' identified by 'jirapasswd';
  2. Query OK, 0 rows affected (0.00 sec)
  3. MariaDB [mysql]> flush privileges;
  4. Query OK, 0 rows affected (0.00 sec)
  5. MariaDB [mysql]> select host,user,password from user ;
  6. +-----------------------+------+-------------------------------------------+
  7. | host | user | password |
  8. +-----------------------+------+-------------------------------------------+
  9. | localhost | root | *A101EBD8E07FFA75FDF2AF4665D3480F15198C43 |
  10. | localhost.localdomain | root | |
  11. | 127.0.0.1 | root | |
  12. | ::1 | root | |
  13. | localhost | | |
  14. | localhost.localdomain | | |
  15. | % | jira | *BEE5CFA96B5FDBD262E3B38F0A341B6BF87C3565 |
  16. | localhost | jira | *BEE5CFA96B5FDBD262E3B38F0A341B6BF87C3565 |
  17. +-----------------------+------+-------------------------------------------+
  18. 8 rows in set (0.01 sec)
  19. MariaDB [mysql]>
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多