PG :: ConnectionBad fe_sendauth:未提供密码 [英] PG::ConnectionBad fe_sendauth: no password supplied
本文介绍了PG :: ConnectionBad fe_sendauth:未提供密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
免责声明:我一般对编程都是陌生的,所以请原谅我的无知。
我正在尝试运行用rails编写的应用程序,但是当我这样做时,出现错误 fe_sendauth:未提供密码。
这是我的database.yml,我感觉这里有些东西。
Disclaimer: I'm very new to programming in general, so please excuse my sizeable ignorance.
I'm trying to run an application I've written in rails, but when I do, I get the error "fe_sendauth: no password supplied".
Here's my database.yml, I have a feeling it's something in here.
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
to,
local all all md5
并在PostgreSQL中使用用户名
和密码
创建一个超级用户,并添加用户名
和密码
到您的 database.yml
文件
and create a super_user in PostgreSQL with username
and password
, and add that username
and password
to your database.yml
file
这篇关于PG :: ConnectionBad fe_sendauth:未提供密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文