mysql2 gem on Windows
Even using RailsInstaller in Windows doesn't ensure a troubleless programming life. One of the first problems is using MySQL.
You must follow these steps to work with Ruby and MySQL:
- Install the gem with
gem install mysql2
. This shouldn't report any problem. - Download this file:
http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip
. Then copylib\libmysql.dll
into your Ruby bin directory (LikeC:\RailsInstaller\Ruby1.9.3\bin
)
And... That's it!
Written by Gustavo Leon
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#