[英]Mysql InnoDB error in Rails 3 when i run rake db:migrate
Mysql2::Error: Unknown table engine 'InnoDB': SHOW FULL FIELDS FROM schema_migrations
This is the error I see when i run rake db:migrate. 这是我在运行rake db:migrate时看到的错误。 I am using mysql server
5.1
and rails 3.2.7
我正在使用mysql服务器
5.1
和rails 3.2.7
Please help me solve this problem 请帮我解决这个问题
I figured out the problem. 我解决了这个问题。 I already had a db and tables in the db.
我已经有一个数据库和数据库中的表。 Some of these tables had similar names.
其中一些表的名称相似。 I dropped the db and retried and it worked.
我删除了数据库,然后重试,它起作用了。 So basically the error was very misleading.
因此,基本上该错误非常容易引起误解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.