0

apparently there is a thread that addresses this issue . But I have already tried to run those commands given in the solution. I am still getting the same error for some reason.

I run gem install mysql2 -v 0.3.18

followed by bundle install

on my terminal. And than I start the server by typing rails server

Upon opening the localhost:3000. I receive the same 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).

Any help would be much appreciated.

K M Rakibul Islam
  • 33,760
  • 12
  • 89
  • 110
Haris Ghauri
  • 547
  • 2
  • 7
  • 27

1 Answers1

4

Add the following to your Gemfile:

gem 'mysql2', '~> 0.3.18'

Then run:

bundle install
K M Rakibul Islam
  • 33,760
  • 12
  • 89
  • 110