mysql2 gem compiled for wrong mysql client library
When try to connect to the mysql server through my rails application, I get the following error D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.0.27. (RuntimeError) How can I rectify it? antinome I had the same problem as you, or at least the symptom was the same. Background: I was using Rails 3, the mysql2 gem, and MySQL community server version 5.5.21 (32-bit) installed locally on my Windows machine. I grabbed the client library ( libmysql.dll )