gem 'MysqL2'
配置/ database.yml的
development: adapter: MysqL2 encoding: utf8 reconnect: false database: db_name_here pool: 5 username: root password: host: localhost
命令行:
bundle install rake db:create rake db:migrate
当然MysqL需要安装.
如果您正在创建一个新项目:
rails new app_name_here -d MysqL