部署 mysql 5.5 是不是和 rails3.2 一起有问题?

jiffies · March 18, 2012 · Last by jiffies replied at March 18, 2012 · 5177 hits

Awdwr4 里说 mysql5.5 和 Rails3.1 有问题,但我用的是 3.2.1

在 Gemfile 里加了 mysql2,

执行 rake db:setup RAILS_ENV="production"时报错,

rake aborted! Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.) mysql2 不是 adapter 嘛?

database.yml 里面你是写的 mysql 而不是 mysql2 吧

#1 楼 @huacnlee 恩是 mysql,改成 mysql2 报 rake aborted! can't convert Fixnum into String

密码是数字吧?!打上引号

#3 楼 @huacnlee 果然是,数据库终于建好了。。之前还有 YAML 要空格不能 tab,mysql 权限也搜了好久。。 敏捷开发的书上写的 Gemfile 里是 mysql2.....adapter 却是 mysql,

You need to Sign in before reply, if you don't have an account, please Sign up first.