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

前端 未结 19 1303
难免孤独
难免孤独 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:05

    Normally, you would create a new Rails app using

    rails ProjectName
    

    To use MySQL, use

    rails new ProjectName -d mysql
    

提交回复
热议问题