R
R
Roman Volkov2015-10-16 11:15:36
Ruby on Rails
Roman Volkov, 2015-10-16 11:15:36

Why doesn't ruby ​​see mysql2?

I am using RVM. With it ruby ​​2.1.5. In the project folder, running bundle. After running rails s - I get the following error:
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
Gemfile contains mysql2, tried gem install mysql2 as well - result is 0.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-10-16
@azrail_dev

There was magic, it was necessary to specify a specific version of the mysql2 gem, 0.3.11 or something, in the Gemfile, the default is 0.4, which worked, to put it mildly, strangely.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question