Gem::LoadError for mysql2 gem, but it's already in Gemfile

后端 未结 14 2647
醉酒成梦
醉酒成梦 2020-12-02 08:35
Gem::LoadError
Specified \'mysql2\' for database adapter, but the gem is not loaded.
Add `gem \'mysql2\'` to your Gemfile

This error occurred while

14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 09:01

    It doesn't load mysql2 gem because new version of mysql2 (>= 0.4.0) gem unable to load the mysql2_adaptor. Can you try this?

    gem 'mysql2', '~> 0.3.13'

    Hopefully, it should work.

提交回复
热议问题