当前位置:网站首页>An error row size too large (& gt; 8126) occurs when MySQL's MyISAM engine switches to InnoDB

An error row size too large (& gt; 8126) occurs when MySQL's MyISAM engine switches to InnoDB

2022-06-10 19:50:00 4xx. me

MySql Of MyISAM Engine switching InnoDB Times wrong Row size too large (> 8126)

Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

Row size too large (> 8126) An error may also occur when adding a field , The row size is not enough , You can solve this problem by enlarging the row size .

Modify online , Restart configuration failure

#  Check the configuration 
show variables like '%innodb_strict_mode%';
show variables like '%innodb_log_file_size%';
#  Modify the configuration 
set GLOBAL innodb_strict_mode=0
set GLOBAL innodb_log_file_size=128M

If you are prompted that the variable is read-only , You need to restart from the modified configuration file /etc/my.cnf

Modify the configuration , Restart and take effect

innodb_strict_mode = 0
innodb_log_file_size = 128M

Modify table engine

alter table  Table name  engine=innodb;
原网站

版权声明
本文为[4xx. me]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101840393915.html

随机推荐