0

I've got a clean install of Ruby+Gems+DevKit+Rails. I've installed both mysql and mysql2. When i'm trying to start a development server i've got an error:

C:/Ruby/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.6.10. (RuntimeError)

How can i use 5.6.10 version of MySQL?
I'm running it on a Windows platform.

UnstableFractal
  • 1,403
  • 2
  • 15
  • 29

1 Answers1

1

The difference between the mysql2 and mysql gems is not to do with the mysql server version.

mysql2 was a rewrite of the mysql gem that was designed to be a more modern set of bindings to libmysql: proper support of ruby 1.9 encodings, better (and fast) typecasting and so on.

Frederick Cheung
  • 83,189
  • 8
  • 152
  • 174