Just do:
gem 'mysql2', '~> 0.3.18'
this gem works with rails version 4.x.x
if install gem 'mysql2', '~> 0.4.0'
it produces gem load error and causes compatibility issues
More Related Contents:
- Boolean Validation
- Auto-loading lib files in Rails 4
- How to use concerns in Rails 4
- Nested attributes unpermitted parameters
- How to get a random number in Ruby
- How to solve error “Missing `secret_key_base` for ‘production’ environment” (Rails 4.1)
- How to change the default binding ip of Rails 4.2 development server?
- TZInfo::DataSourceNotFound error starting Rails v4.1.0 server on Windows
- Rails 4 Authenticity Token
- Rails association with multiple foreign keys
- Add Custom Field/Column to Devise with Rails 4
- Deprecated warning for Rails 4 has_many with order
- How to configure Google Domains + Heroku w a Naked Domain
- ERROR: Failed to build gem native extension on Mavericks
- Rails 4: assets not loading in production
- “bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku
- Redis + ActionController::Live threads not dying
- Rails: PG::UndefinedTable: ERROR: relation “…” does not exist
- Rails Observer Alternatives for 4.0
- Rails 4.0 Strong Parameters nested attributes with a key that points to a hash
- Rails 4 – checkboxes for has_and_belongs_to_many association
- Rails 4: Why are fonts not loading in production?
- Ruby on rails 4 app does not work in iframe
- ActionMailer not sending mail in development Rails 4
- strong parameters permit all attributes for nested attributes
- Changing the default date and time format in Rails 4
- How to integrate a Wrap Bootstrap theme into an Rails application?
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Unable to install MySQL2 gem on Windows 7
- ActionController::ParameterMissing (param is missing or the value is empty: film):