Create a new Ruby on Rails application using MySQL instead of SQLite

Daniel Broekman picture Daniel Broekman · Aug 6, 2008 · Viewed 147.3k times · Source

I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails instead of the default SQLite?

Answer

Daniel Broekman picture Daniel Broekman · Aug 6, 2008

Normally, you would create a new Rails app using

rails ProjectName

To use MySQL, use

rails new ProjectName -d mysql