我之前问过question没有得到任何回复。
基本上,当我尝试执行 heroku db:push
时,我收到错误 invalid database url
。
我想我可以尝试显式提供数据库 URL。
我试过:
heroku db:push postgres://postgres@localhost/myrailsdb
但这给出了错误:
Failed to connect to database:
Sequel::DatabaseConnectionError -> PGError fe_sendauth: no password supplied
提供用户名和密码的格式是什么?
最佳答案
试试 heroku db:push postgres://username:password@localhost/myrailsdb
。
关于ruby-on-rails - 如何使用url连接到postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2168443/