我正在尝试使用Push and Pull Databases To and From Heroku中描述的标准语法将数据从 heroku 下载到本地 Win7 MySQL 。
我已经在本地使用 sqlite 进行了几次,但使用 MySQL Heroku Toolbelt 似乎无法连接到数据库。
我收到以下错误:
连接数据库失败:
Sequel::AdapterNotFound -> LoadError: cannot load such file -- mysql
您可以在下面看到我的控制台日志。我还列出了所有依赖项。(可能我错过了一个?)
我在这里想念什么?
Win7控制台:
c:\Sites\app>heroku db:pull mysql://root:passwd@localhost/app-staging
Loaded Taps v0.3.24
Warning: Data in the database 'mysql://root:passwd@localhost/app-staging' will be overwritten and will not be
recoverable.
! WARNING: Destructive Action
! This command will affect the app: app-staging
! To proceed, type "app-staging" or re-run this command with --confirm app-staging
> app-staging
Failed to connect to database:
Sequel::AdapterNotFound -> LoadError: cannot load such file -- mysql
c:\Sites\app>bundle show mysql2
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32
c:\Sites\app>mysql -V
mysql Ver 14.14 Distrib 5.6.11, for Win32 (x86)
c:\Sites\app>heroku --version
heroku/toolbelt/2.40.1 (i386-mingw32) ruby/1.9.3