[英]Cuttlefish.io (Ruby on Rails) configuration for MySQL
Default cuttlefish.io configuration (from Git repository https://github.com/mlandauer/cuttlefish ) is based on use of a Postgres DB. 默认的cuttlefish.io配置(来自Git存储库https://github.com/mlandauer/cuttlefish )基于Postgres DB的使用。 How to change it to use a MySQL DB?
如何更改它以使用MySQL数据库?
More specifically: 进一步来说:
Thx 谢谢
In Gemfile
change the lane: 在
Gemfile
更改车道:
gem 'pg'
to: 至:
gem 'mysql2'
Run bundle install
运行
bundle install
In config/database.yml
change the lane: 在
config/database.yml
更改通道:
adapter: postgresql
to: 至:
adapter: mysql
For other configuration options refer to the official configuration guide 有关其他配置选项,请参阅官方配置指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.