Rails with mysql database

Posted on January 16, 2009, under MySQL, Rails.

As we all knew, recent rails version 2.2.2 supports sqllite3 as a default database and when you create a new app the “database.yml” would have been configured with sqllite3.

As I am used to mysql so much, I am not prepared to migrate to sqllite and still preferred to have mysql as the default database and to do this, you need to specify another parameter -d to the rails. Here a example

rails  -d mysql

This would create a new app with mysql as its database.

Hope this helps!

Leave a Comment

You must be logged in to post a comment.