I am using the Cloud9 IDE
which has an ubuntu
operating system. I recently uninstalled my local SQLlite3 database from my Rails app and successfully installed a local postgres database. I am now trying to pull the postgres production database from Heroku.
If I run ActiveRecord::Base.connection.instance_variable_get(:@config)
in Rails Console:
{:adapter=>"postgresql", :encoding=>"unicode", :pool=>5, :template=>"template0", :username=>"ubuntu", :password=>"password", :database=>"learning_app_development"}
From the command line perthese instructions:
$ heroku pg:pull DATABASE_URL mylocaldb --app my-app-6503
heroku-cli: Pulling postgresql-meadows-7463 ---> mylocaldb
Password:
After I enter password in this field, it fails:
createdb: could not connect to database template1: FATAL: password authentication failed for user "ubuntu"
This answer by Elliot is the instructions I followed to setup postgres locally.
I solved this with this answer:
heroku pg:pull password authentication failed
from Joel.
It does not make any sense to me all besides that maybe Heroku will not accept password as the password?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.