I know there a number of posts similar to this one and yet I still seem to be unable to solve my problem. So if I have missed something, feel free to explain it like you would to a child. :)
I am trying to push data from my local machine which uses Mysql to Heroku which uses Postgres.
The command heroku db:push sometable -t
generates the error message below:
Failed to connect to database Sequel::AdapterNotFound -> LoadError cannot load such file
I have also tried:
heroku db:push -t sometable mysql://user:password@localhost/db_name
Added info:
Any suggestions would be greatly appeciated. Thanks in advance.
I had a similar issue and was able to get it working using standard heroku gem.
I installed Heroku through their site downloader - 'Heroku Toolbelt' package for windows. That didn't work so in addition I also installed
Heroku gem
and all dependencies. (ignore deprecation warning)
sqlite3 gem
for taps (i don't use sqlite, but heroku needs it)
then it worked!
Heroku uses PostgreSQL as database. You should not get this error if you install pg.
Try to run: gem install pg
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.