Saturday, November 29, 2008

InstantRails 2.0 - Default Database is SQLite3, How to change into mysql

InstantRails 2.0 or higher versions comes with the SQLite3 as the default database,
So a command like this rails my_app will take SQLite3 as the default database for the Rails application.

To use mysql try the following command:
rails -d mysql my_app

extra parameter -d will define database

Get Free Sinhala IT Learning Videos Kuppiya.com


Get custom programming done at GetAFreelancer.com!

1 comment:

  1. thanks, and here are 2 other way to do it:

    rails my_new_app --database=mysql

    or search for the app_generator.rb file in gems, open it and change at the line 11 "sqlite3" with "mysql"

    ReplyDelete