mysql2 0.5.6 error: Incorrect MySQL client library version
Answered
Hi all, I'm facing the following issue when using RubyMine IDE 2024.3:
I get the following error when executing the rails config: 'There was an error while trying to load the gem 'mysql2'. (Bundler::GemRequireError)
Gem Load Error is: Incorrect MySQL client library version! This gem was compiled for 10.8.8 but the client library is 3.4.1.'
Config: Ruby 3.3.6, Rails 8.0.0, MySQL 8.4.0 and the mysql2 0.5.6 gem.
Any help will be much appreciated, thanks!
Please sign in to leave a comment.
Hello,
Could you please check whether you manage to start the rails server with bundle exec manually from the Terminal?
Hello Olga Kuvardina,
I tried using build exec rails and it gives the same error.
I forgot to say that my OS is Win11.
Praduv83 in this case it doesn't seem to be related to RubyMine. You can check the SO or GitHub issues with similar problem's description, like this one: https://stackoverflow.com/questions/10725439/incorrect-mysql-client-library-version