heroku db:拉不行 [英] heroku db:pull not working
问题描述
heroku db:pull postgresql:// root:@ localhost / db_name
在此命令显示此消息之后
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient /abstract_response.rb:50:警告:未来版本的括号参数
Loaded Taps v0.3.13
警告:数据库'postgresql:// root:@ localhost / db_name'中的数据将是被覆盖并且不可恢复。
您确定要继续吗? (Y / N)? y
无法连接到数据库:
Sequel :: AdapterNotFound - > LoadError:没有这样的文件加载 - sequel / adapters / postgresql
如何使用db:pull
首先,您需要修复连接字符串:use postgres
而不是 postgresql
。
您将需要安装pg
db适配器以使用 Sequel的postgresql适配器:
gem install pg
您可能还想确保您的水龙头,续集和heroku宝石是最新的:
<$ p $然后试试你的
gem install heroku点击续集
> heroku db:再次拉
。如果这不起作用,请发表评论或在Freenode的#heroku上跳转,我们可以尝试提供帮助。 heroku db:pull postgresql://root:@localhost/db_name
After this command display this message
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:50: warning: parenthesize argument(s) for future version Loaded Taps v0.3.13 Warning: Data in the database 'postgresql://root:@localhost/db_name' will be overwritten and will not be recoverable. Are you sure you wish to continue? (y/n)? y Failed to connect to database: Sequel::AdapterNotFound -> LoadError: no such file to load -- sequel/adapters/postgresql
How to use db:pull
First, you need to fix your connection string: use postgres
instead of postgresql
.
You will need to have the pg
db adapter installed to use Sequel's postgresql adapter:
gem install pg
You may also want to make sure your taps, sequel, and heroku gems are up to date:
gem install heroku taps sequel
Then try your heroku db:pull
again. If that doesn't work, post a comment or hop in #heroku on Freenode and we can try to help.
这篇关于heroku db:拉不行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!