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

前端 未结 19 1297
难免孤独
难免孤独 2020-12-04 05:46

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?

19条回答
  •  半阙折子戏
    2020-12-04 06:11

    For Rails 3 you can use this command to create a new project using mysql:

    $ rails new projectname -d mysql
    

提交回复
热议问题