mysql 8126

Posted moss_tan_jun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 8126相关的知识,希望对你有一定的参考价值。

注意:

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.

以上是关于mysql 8126的主要内容,如果未能解决你的问题,请参考以下文章

mysql创建表报错:ERROR 1118 (42000) ...Row size too large (> 8126)

MySQL:错误代码:1118 行大小太大(> 8126)。将某些列更改为 TEXT 或 BLOB

MySQL# [Err] 1118-Row size too large (> 8126)Lost connection to MySQL server at ‘reading initial’

MySQL# [Err] 1118-Row size too large (> 8126)Lost connection to MySQL server at ‘reading initial’

Mysql_大字段问题Row size too large.....not counting BLOBs, is 8126.

莫名奇妙的异常009:mysql row size too large>8126