Gem::LoadError
Specified 'mysql2' for database adapter, but the gem is not loaded.
Add `gem 'mysql2'` to your Gemfile
加载以下文件时发生此错误:
active_record/base
这是我在运行Rails服务器时遇到的错误。
The mysql2 gem has been added to the Gemfile as well.
我已经完成了bundle install
,并尝试重新启动服务器,但仍然收到错误消息。
bundle install --deployment
bundle
在添加gem并重新启动服务器后运行了吗?