SugarCRM - Database Failure - Row Size Too Large?

狂风中的少年 提交于 2021-02-10 12:28:08

问题


I've been building a custom module for sugarCRM and i'm running into some issue's, when installing the module i'm met with 'Database failure. Please refer to sugarcrm.log for details.'

Upon checking the log file, i can find the error is this:

"MySQL error 1118: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs 01/03/14"

Whilst my module does have alot of fields, is there anyway i could get around this? Seems like sugar doesn't give me options for varchar/text etc when creating fields.

Thanks!


回答1:


I ran in to this same problem when implementing SugarCRM as a multi-tenant solution. You have a couple of options.

1) Go in to studio and set the size of your fields to a smaller value. Each character in a varchar field is a few bytes in size on average. Therefore, if you reduce the amount of characters allowed for each of your fields in studio you will allow for more fields in your module. (see http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html).

2) Divide up those fields into a couple of modules that relate to a parent module. This will spread out your fields over more than 1 table preventing you from hitting the limit.

I would be happy to assist further if you need a more in-depth explanation of either solution.



来源:https://stackoverflow.com/questions/20896170/sugarcrm-database-failure-row-size-too-large

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!