SQLSTATE[42000] 语法错误或访问冲突行大小太大 [英] SQLSTATE[42000] Syntax error or access violation Row size too large
本文介绍了SQLSTATE[42000] 语法错误或访问冲突行大小太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在运行 joomla xmlImport.php 文件时遇到以下错误.
I am getting the following error while running my joomla xmlImport.php file.
SQLSTATE[42000]: Syntax error or access violation: 1118 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, BL
内联存储 768 字节的 OB 前缀.
OB prefix of 768 bytes is stored inline.
正如他们中的许多人建议我将 innodb_log_file_size
增加到 128M,但我仍然遇到相同的错误.有人可以帮助我吗?
As many of them suggested I have increased innodb_log_file_size
to 128M but still I am getting the same error. Can sombody help me on this?
推荐答案
innodb_log_file_size 设置不影响此错误.该错误是关于超过 mysql 的最大行长度限制的行.您需要查看 create table 语句和
innodb_log_file_size setting does not affect this error. The error is about a row exceeding mysql's max row length limitation. You need to review the create table statement and either
- 减少某些列长度
- 将某些 varchar 列的数据类型更改为 text 或 blob
- 按照错误消息中的建议更改行格式
- 将字符编码更改为符合您要求的 sg,但使用较少的字节.
这篇关于SQLSTATE[42000] 语法错误或访问冲突行大小太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文