Friday, March 13, 2009

Using MySQL as the DataBase for RoR

In rails < 2.0, when I create a rails new application by the rails command, the configuration of database.yml supports MYSQL by default. While in rails 2.0, it will generate default configuration database.yml for Sqlite3. To make it default as MySQL, run with -d mysql.
rails -d mysql your_application_name

No comments: