copy libmysql.dll from mysql lib dir (C:\Program Files (x86)\MySQL\MySQL Server 5.6\lib) to ruby bin dir (C:\RailsInstaller\Ruby1.9.3\bin).
Run below line from git bash (doesn't work from powershell )
Run below line from git bash (doesn't work from powershell )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install mysql2 -- '--with-mysql-lib="c:\Program Files (x86)\MySQL\MySQL Server 5.6\lib" --with-mysql-include="c:\Program Files (x86)\MySQL\MySQL Server 5.6\include"' | |
# for specific version | |
gem install mysql2 -v=0.3.14 -- '--with-mysql-lib="c:\Program Files (x86)\MySQL\MySQL Server 5.6\lib" --with-mysql-include="c:\Program Files (x86)\MySQL\MySQL Server 5.6\include"' |