无法rake db:migrate

时间:2014-02-03 11:05:32

标签: ruby-on-rails

当我尝试迁移数据库时,出现错误Mysql2::Error: Table 'database.lorem_ipsum' doesn't exist: SHOW FULL FIELDS FROM ``lorem_ipsum。我之前通过rake db:migrate

创建了数据库

配置/ database.yml的

development:
  adapter: mysql2
  database: database
  username: root
  password:

1 个答案:

答案 0 :(得分:0)

你能试试吗?

test:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: database
  pool: 5
  username: root
  password: 

在您的database.yml