gpt4 book ai didi

ruby-on-rails - PG::ConnectionBad fe_sendauth:未提供密码

转载 作者:行者123 更新时间:2023-11-29 13:27:47 26 4
gpt4 key购买 nike

免责声明:总的来说,我对编程还很陌生,所以请原谅我的无知。我正在尝试运行我用 Rails 编写的应用程序,但是当我这样做时,我收到错误消息“fe_sendauth:未提供密码”。
这是我的 database.yml,我感觉这里有些东西。

default: &default
adapter: postgresql
pool: 5
timeout: 5000

development:
<<: *default
database: url-shortener_development

test:
<<: *default
database: url-shortener_test

production:
<<: *default
database: url-shortener_production
username:
password:

最佳答案

改变这个,

local   all             all                                     trust

到,

local   all             all                                     md5

并使用 usernamepassword 在 PostgreSQL 中创建一个 super 用户,并将该 usernamepassword 添加到您的database.yml 文件

关于ruby-on-rails - PG::ConnectionBad fe_sendauth:未提供密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30450558/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com