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 money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
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)