Skip to content

Instantly share code, notes, and snippets.

@marcialca
Created November 9, 2012 01:20
Show Gist options
  • Save marcialca/4043119 to your computer and use it in GitHub Desktop.
Save marcialca/4043119 to your computer and use it in GitHub Desktop.
[Rails] Rails + XAMPP + Windows + MySQL
gem install mysql2 -- --with-mysql-include=C:\xampp\mysql\include --with-mysql-lib=C:\xampp\mysql\lib\opt
At the time of building this gem, the necessary DLL files where available
in the following download:
http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick
And put lib\libmysql.dll file in your Ruby bin directory, for example
C:\Ruby\bin
En config.yml
annadir "Port:3306" (MySQL en XAMPP)
cambiar la palabra "localhost" por "127.0.0.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment