Redmine postgresql 致命:用户"redmine"的识别身份验证失败



遵循以下说明(使用postgresql而不是mysql):http://www.redmine.org/projects/redmine/wiki/Redmine_on_CentOS_installation_HOWTO

当运行此命令时:

RAILS_ENV=production bundle exec rake db:migrate

rake显示错误消息:

FATAL:  Ident authentication failed for user "redmine"

应该没有必要为redmine修改pg_hba.conf。首先检查数据库角色是否配置正确:

    su - postgres
    psql -d redmine -U redmine -h localhost
    <password challenge>

如果接受密码,则下一步是确认您已安装libopenssl-ruby

您应该拥有与linux用户名相同的postgres用户名这比修改"pg_hba.conf"文件

更容易

这对我有效:

psql redmine redmine -h localhost

-h localhost部分起了作用。

最新更新