The error is quite clear: you used a libmysql.dll from a different
version of MySQL than the one used to compile the gem you installed.
libmysql.dll do not maintain binary compatibility between versions, so
binary gems compiled for a version of MySQL run old and break with
newer releases of MySQL.
You can avoid all that by installing RubyInstaller's DevKit and
compile the gem like any other user on any other platform.
Instructions for "mysql" gem are here:
Please read the instructions *fully* before reporting it doesn't work.
Take in consideration:
* It assumes you already installed Ruby and RubyInstaller DevKit
following the website instructions:
* You downloaded a *32bits* version of MySQL Connector/C
* It assumes you installed Ruby and you extracted MySQL Connector/C in
a folder *without spaces*. It is extremely important you don't install
neither Ruby, DevKit or extract MySQL Connector/C in a folder with
* Last but no least: you use the gem install flags properly. Example:
gem install mysql --platform=ruby -- --with-mysql-dir=C:/mysql-
Note the force of platform and the double dashes before "--with-mysql-
dir" option. Also note the use of forward slashes instead of
Hope that helps.