- Download and install Ruby from RubyInstaller
- Download Development Kit and follow the installation instructions
- Download Mysql Connector/C and extract it into a path without spaces. For example c:\mysql-connector
- Run gem install mysql2 -- --with-mysql-include=c:\mysql-connector\include --with-mysql-lib=c:\mysql-connector\lib to install the gem.
- Copy c:\mysql-connector\lib\libmysql.dll to your Ruby bin path.
Install Ruby mysql2 gem on Windows 7