简体   繁体   English

Ruby on Rails:Rake db错误:在mysql上迁移

[英]ruby on rails : error with rake db:migrate on mysql

i am having a trouble while rake db:migrate command . 我在耙db:migrate命令时遇到了麻烦。 i have around 90 fields in my table nd the database i am using is mysql on windows 7.. while migrating it gives me error that row size too large please change the column size, i even changed the limits to (65535) of the fields in the column and it still gives me the same error . 我的表中有大约90个字段,而我正在使用的数据库是Windows 7上的mysql。在迁移它时,出现行大小太大的错误,请更改列大小,我甚至将字段的限制更改为(65535)在列中,它仍然给我同样的错误。 i need to use mysql only please advise me what should i do to over come this problem. 我只需要使用mysql,请告诉我该怎么做才能克服这个问题。

There is a maximum varchar size combined for the entire table, you will have to use TEXT columns instead. 整个表的最大varchar大小组合在一起,您将不得不使用TEXT列。 This applies to InnoDB tables, I'm not sure about others. 这适用于InnoDB表,我不确定其他表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM