1

根据 CentOS 7 文档 ( https://www.openproject.org/download-and-installation/#installation ) 安装了 openproject,运行后sudo openproject configure,得到如下所示的错误输出:

➜  ~ sudo openproject configure 
Launching installer for openproject...
Selected addons: legacy-installer mysql apache2 repositories smtp memcached openproject
[legacy-installer] ./bin/configure
[mysql] ./bin/configure
DONE
[apache2] ./bin/configure
DONE
[repositories] ./bin/configure
DONE
[smtp] ./bin/configure
DONE
[memcached] ./bin/configure
DONE
[openproject] ./bin/configure
[legacy-installer] ./bin/preinstall
[mysql] ./bin/preinstall
[apache2] ./bin/preinstall
Note: Forwarding request to 'systemctl enable httpd.service'.
[repositories] ./bin/preinstall
[smtp] ./bin/preinstall
[memcached] ./bin/preinstall
No memcached server to install. Skipping.
[openproject] ./bin/preinstall
[legacy-installer] ./bin/postinstall
[mysql] ./bin/postinstall
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

以前从未使用过 MariaDB,但通过一些基本检查(安装在https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password之后)

➜  ~ mysqladmin -u root -p version
Enter password: 
mysqladmin  Ver 9.0 Distrib 5.5.60-MariaDB, for Linux on x86_64
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Server version      5.5.60-MariaDB
Protocol version    10
Connection      Localhost via UNIX socket
UNIX socket     /var/lib/mysql/mysql.sock
Uptime:         21 min 38 sec

Threads: 1  Questions: 16  Slow queries: 0  Opens: 7  Flush tables: 2  Open tables: 25  Queries per second avg: 0.012

(密码为空白)数据库似乎正在工作且可访问。删除并重新安装 mariadb-server 软件包似乎也不会改变行为。以前从未使用过 openproject 或 mysql / mariadb,所以任何关于这里可能发生的事情的建议都将不胜感激。

4

1 回答 1

0

Install and configure MySQL server locally是在配置步骤中选择的吗?

在此处输入图像描述

如果是这样,包应该自动配置一个随机的 MySQL root 密码,该密码存储mysql/root_password/etc/openproject/installer.dat. 如果您仍然可以使用空密码访问数据库,则安装程序无法正确设置密码。它似乎从 urandom 获取输入

您可以尝试在 MySQL 密码提示符中按回车键运行以下命令:

mysqladmin -u root -p password "<Create and insert a random password here>"

然后替换 at 的mysql/root_password/etc/openproject/installer.dat

于 2018-09-26T05:52:07.153 回答