Let's talk Contact us. No cost. No obligation.

Fill out this form and we will contact you with in 24 hrs.

    captcha

     

    Knowledge Base

    Ruby & Rails with MySql configuration on Windows

    April 18, 2014

    Topic : Ruby & Rails with MySql configuration on Windows
    Follow bellow instruction for configure Ruby and Rails with MySql DB

    1. Download latest version of Ruby from ruby installer
    Link :http://rubyinstaller.org/downloads

    2. Install to your system local drive, C:Ruby2

    3. Now Download DevKit
    Link :http://rubyinstaller.org/downloads

    The RubyInstaller Development Kit is a toolkit that makes it easy to build and use native C/C++ extensions such as RDiscount and RedCloth for Ruby on Windows.

    4. Install DevKit, follow instruction as mention in below link:
    https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

    5. Now Install rails
    Command : gem install rails

    6. Now Download mysql connector “Windows (x86, 32-bit), ZIP Archive”
    Link : http://dev.mysql.com/downloads/connector/c/

    7. Extract mysql connector to C:mysql-connector-c-noinstall-6.0.2-win32-vs2005

    8. Now Install gem for mySql
    Command : gem install mysql2 –platform=ruby — –with-mysql-dir=C:mysql-connector-c-noinstall-6.0.2-win32-vs2005

    9. copy C:mysql-connector-c-noinstall-6.0.2-win32-vs2005liblibmysql.dll to C:Ruby193bin folder

    About Avadhesh Purwar

    Avadhesh Purwar http://www.google.com