注意:
1) 修改后的innodb_file_format格式, 只影响后续创建的表。 也就是后续创建的表,可以支持把row_format设为dynamic,之前创建的表仍然会报错
2) SET GLOBAL 只是在mysql服务器运行期间有效,重启后innodb_file_format还原为原来的格式。
3) 判断一个表是否支持超过10个blob的字段的简单办法: show table status like ‘t1‘ \G 查看 Row_format , 如果是Compact, 必定不支持, 如果是dynamic, 则支持。
Hello All
I have encounterd a problem on engine conversion from myisam to innodb, it shows error like:
ERROR 1118 (42000): 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.
To resolve following issue , i have change on my.cnf.
my.cnf
innodb_file_format = Barracuda
innodb_file_per_table = 1
and used on alter command.
Alter table <table_name> engine=innodb ROW_FORMAT=DYNAMIC;
It solves my issue but our team concern about the performance,security and possible error arise after following changes.
So i reqest all of you , can any one please suggest me the better alternavite solution for current issue , and what will be the performance impact on this changes.
thanks in advance.
原文:https://www.cnblogs.com/moss_tan_jun/p/10236561.html