[英]rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied
I'm on Cloud9 Ubuntu Template and I installed postgres. 我在Cloud9 Ubuntu模板上,并安装了postgres。 I'm getting an error when I try to do a "rake db:migrate".
尝试执行“ rake db:migrate”时出现错误。
rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied
Related settings in my database.yml file 我的database.yml文件中的相关设置
default: &default
adapter: postgresql
encoding: unicode
pool: 5
username: <%= ENV['USERNAME'] %>
password: <%= ENV['PASSWORD'] %>
host: <%= ENV['IP'] %>
development:
<<: *default
database: app_development
It seems like Cloud9 issue. 似乎是Cloud9问题。 I refer https://community.c9.io/t/fe-sendauth-no-password-supplied-error-after-setting-up-postgrsql-on-rails/2206/2
我指的是https://community.c9.io/t/fe-sendauth-no-password-supplied-error-after-setting-up-postgrsql-on-rails/2206/2
Run below commands on your c9 terminal. 在c9终端上运行以下命令。
$ source ~/.profile
$ rake db:create
$ rake db:migrate
It works for me. 这个对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.