How do i create the rails 3.1 application using mysql
How to create a rails 3.1 application using mysql. The following command used to create the project with sqlite database.
rails new d开发者_JAVA技巧epot
I'd like to use mysql then sqlite. So can anyone tell me how to create a project with mysql.
Thanks
See help for rails new command
rails new --help
-d, [--database=DATABASE]
Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) # Default: sqlite3
You should use:
rails new depot -d mysql
精彩评论