我正在尝试为我的旧 Rails 项目运行 rake db:setup,它会引发以下错误。
`rake aborted!
Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Caused by:
Gem::LoadError: mysql is not part of the bundle. Add it to your Gemfile.
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create
(See full trace by running task with --trace)`
这是我的红宝石版本ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux]
我的导轨版本Rails 4.2.7.1
和mysql版本mysql Ver 14.14 Distrib 5.5.56, for linux-glibc2.5 (x86_64) using readline 5.1
谢谢