Monday, July 4, 2011

mysql2 runs successfully again

after the version 0.2.11 or 0.3.6, mysql2 runs successfully again.

And I introduce the way to run rails 3.0.9 with mysql2 0.2.11 on MariaDB 5.2.7 in Windows.

  1. Install the MariaDB on Windows into C:/MariaDB
  2. Install ruby 1.9.x with Ruby DevKit 4.5.1
  3. Install rails 3.0.9
  4. Install mysql2 0.2.11
    > gem install mysql2 --version=0.2.11 --platform=ruby -- --with-mysql-include=C:/MariaDB/include --with-mysql-lib=C:/MariaDB/lib
  5. Do rails ways
    > rails -d mysql sample
    > cd sample
    > rails g scaffold person first_name:string last_name:string
    > rails s
That's all.

No comments:

Post a Comment