How to Install mySql gem on Window 7 or Window 8 and Window 8.1 or Window 9 x64 x86 32 bit and 64 bits and mysql - ruby mysql2 gem install error solution Installing MySQL2 gem fails while running "bundle install" on Windows solutions How to install Ruby 3 on rails in Windows 7 solution follow following steps:
1.Download mySQL Server Latest version Installer
2.Download mySQL Connector C Latest Version in Zip Format
3.Install mySql Server.
4.UnZip MySQl-Connector and place in C Drive in following path name
5.Then Copy the C:\mysql-connector\lib libmysql.dll
6. Open DOS Command and install with following same commands
gem install mysql2 -- '--with-mysql-lib="C:\mysql-connector\lib" --with-mysql-include="C:\mysql-connector\include"'
gem install mysql2 -- '--with-mysql-dir="C:\mysql-connector\"'
It Will install the mysql2 and now your check