1. 程式人生 > >資料庫錶行輸入總字數太多報錯:Row size too large (> 8126)

資料庫錶行輸入總字數太多報錯:Row size too large (> 8126)

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.

Alter table <table_name> engine=innodb ROW_FORMAT=DYNAMIC;