Read more

How to: Fix incorrect MySQL client library version

Emanuel
February 02, 2018Software engineer at makandra GmbH

Upgrade mysql2 fixes the problem https://makandracards.com/makandra/515130-fix-for-mysql2-error-incorrect-mysql-client-library-version-this-gem-was-compiled-for-x-x-x-but-the-client-library-is-y-y-y

Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'.
Gem Load Error is: Incorrect MySQL client library version! This gem was compiled for 5.5.46 but the client library is 5.6.30.

Same as in Fix "libmysqlclient.so.20: cannot open shared object file: No such file or directory":

gem pristine mysql2
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

gem pristine re-installs a gem (without re-downloading), re-compiling all native extensions in the process.

Posted by Emanuel to makandra dev (2018-02-02 13:32)