[英]PG::ConnectionBad fe_sendauth: no password supplied
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".
我正在尝试运行用Rails编写的应用程序,但是当我这样做时,出现错误“ fe_sendauth:未提供密码”。
Here's my database.yml, I have a feeling it's something in here. 这是我的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:
Change this, 改变这个
local all all trust
to, 至,
local all all md5
and create a super_user in PostgreSQL with username
and password
, and add that username
and password
to your database.yml
file 并在PostgreSQL中使用
username
和password
创建一个super_user,并将该username
和password
添加到您的database.yml
文件中
Please do some changes in database.yml 请在database.yml中进行一些更改
development: 发展:
adapter: postgresql
encoding: unicode
database: database-name
pool: 5
username: #### your pg username
password: #### your pg password
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.