Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:55:07+00:00 2026-05-30T15:55:07+00:00

When try to connect to the mysql server through my rails application, I get

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:55:09+00:00Added an answer on May 30, 2026 at 3:55 pm

    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) from the MySQL installation and copied it to my ruby installation’s bin folder.

    When I ran bundle exec rake db:create, I got the same error message as you and I thought “Hey, how can the client library be outdated when I got it from the latest MySQL release?”

    There’s a helpful message that is shown when you gem install mysql2. Unfortunately, if you install the gem with Bundler, Bundler eats the message. Here it is:

    =========================================================================
    You've installed the binary version of mysql2. It was built using MySQL 
    Connector/C version 6.0.2. It's recommended to use the exact same version
    to avoid potential issues.
    
    At the time of building this gem, the necessary DLL files where available
    in the following download:
    
    http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick
    
    And put lib\libmysql.dll file in your Ruby bin directory, for example
    C:\Ruby\bin
    

    Following these instructions solved the problem for me.

    Referenced link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I getting the following error when I try to connect to my server app
when I try to connect to my server through MySQL Connector/NET using SSL with
I am getting the following error when I try to connect to mysql: Can't
When I try to connect to mysql which I installed using MacPorts, I get
I just set up a new LAMP server. I can connect to mysql through
When I try to connect to my MySQL server using MySQL Workbench - I
When trying to connect to mysql I always get this error: java.sql.SQLException: No suitable
Whenever I try to connect to MySQL to access phpmyadmin, it returns an error:
I can successfully connect to MySQL from a DOS prompt, but when I try
When I try to connect Weblogic t3s protocol in Solaris Server, it shows this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.