Skip to content

Incorrect MySQL client library version! This gem was compiled for 10.8.8 but the client library is 3.4.3. (Ruby on Rails - MySQL) #1391

@PAWANRAJ-CSE

Description

@PAWANRAJ-CSE

Hi all!

Check this info:

ruby -v
ruby 3.3.7 (2025-01-15 revision be31f993d7) [x64-mingw-ucrt]

rails -v
Rails 8.0.1

bundle info mysql2

mysql2 (0.5.6)
Summary: A simple, fast Mysql library for Ruby, binding to libmysql
Homepage: https://github.com/brianmario/mysql2
Documentation: https://www.rubydoc.info/gems/mysql2/0.5.6
Source Code: https://github.com/brianmario/mysql2/tree/0.5.6
Changelog: https://github.com/brianmario/mysql2/releases/tag/0.5.6
Bug Tracker: https://github.com/brianmario/mysql2/issues
Path: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mysql2-0.5.6
mysql -V
mysql Ver 8.0.40 for Win64 on x86_64 (MySQL Community Server - GPL)

The error is as follows:

Caused by:
Incorrect MySQL client library version! This gem was compiled for 10.8.8 but the client library is 3.4.3.
internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb:37:in require' internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb:37:in require'
F:/CSE/ROR-2024/PROJECTS/ONE/thirdapp/config/application.rb:7:in

' F:/CSE/ROR-2024/PROJECTS/ONE/thirdapp/Rakefile:4:in require_relative'
F:/CSE/ROR-2024/PROJECTS/ONE/thirdapp/Rakefile:4:in ' bin/rails:4:in

'
(See full trace by running task with --trace)
How to resolve the issue?? Kindly help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions