相关疑难解决方法(0)

如何使用url连接到postgresql

我曾问一个较早的问题,其并未得到任何回复.

基本上我invalid database url在尝试时会出错heroku db:push.

我想我可以尝试显式提供数据库URL.

我试过了:

heroku db:push postgres://postgres@localhost/myrailsdb

但这给了错误:

Failed to connect to database:
  Sequel::DatabaseConnectionError -> PGError fe_sendauth: no password supplied
Run Code Online (Sandbox Code Playgroud)

提供用户名和密码的格式是什么?

postgresql ruby-on-rails heroku taps

34
推荐指数
4
解决办法
4万
查看次数

标签 统计

heroku ×1

postgresql ×1

ruby-on-rails ×1

taps ×1