I had asked an earlier question which did not get any replies.
Basically I get an error invalid database url
when I try to do heroku db:push
.
I figured I can try explicitly providing the database url.
I tried:
heroku db:push postgres://postgres@localhost/myrailsdb
But that gave error:
Failed to connect to database:
Sequel::DatabaseConnectionError -> PGError fe_sendauth: no password supplied
What is the format for providing username and password?
question from:
https://stackoverflow.com/questions/2168443/how-to-connect-to-postgresql-using-url 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…