【发布时间】:2015-03-04 10:44:36
【问题描述】:
我正在尝试启动数据库并仍在学习 ruby on rails。但在这一步中,我在cmd 中运行以下代码时出现错误。
我已经安装了mysql2,它出现在 gem 列表中。我将教程示例文件中的database.yml 文件放到我的工作文件夹中。仍然得到错误。并再次安装所有mysql2。再次安装包。
注意:我使用的是 Windows 8.1 64 位。
C:\Users\Thilanka\myapp>rake db:schema:dump
DL is deprecated, please use Fiddle
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not load
ed. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum
required by ActiveRecord).
Gem::LoadError: mysql2 is not part of the bundle. Add it to Gemfile.
Tasks: TOP => db:schema:dump => db:load_config
(See full trace by running task with --trace)
【问题讨论】:
标签: ruby-on-rails ruby database mysql2