当前位置:网站首页>MySQL - Row size too large (> 8126). Changing some columns to TEXT or BLOB
MySQL - Row size too large (> 8126). Changing some columns to TEXT or BLOB
2022-08-04 05:36:00 【放羊的牧码】
报错信息
Row size too large (> 8126). Changing some columns to TEXT or BLOB
分析原因
- 因为 mysql 默认的 page 最大是 16k,而 page 中单行最大不能超过 8k
- 因为 text 或者 blob 字段太多也会导致一行数据大于 8k,因为 innodb 默认的 approach(羚羊)存储格式会把每个 blob 字段的前 864 个字节存储在 page 里。这样的话一旦有很多个text 或者 blob字段,还是有可能超过 8k
解决方案
1、可以尝试将 varchar 字段改成 text 或者 blob
2、表结构需要重新设计,减少字段个数
3、修改配置方案1
SET INNODB_STRICT_MODE = 0;4、修改配置方案2
SET GLOBAL innodb_file_format='Barracuda'
SHOW GLOBAL VARIABLES LIKE '%file_format%';
ALTER TABLE 表名 ROW_FORMAT=COMPRESSED
SHOW TABLE STATUS LIKE '表名'边栏推荐
- 原型图总结规范
- 水平垂直居中的12种方法,任意插入节点的方法,事件的绑定的三种方法和解绑的方法,事件对象,盒子模型
- 基于爬行动物搜索RSA优化LSTM的时间序列预测
- SENet detailed explanation and Keras reproduction code
- mysql锁机制
- RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S
- Visualization and Animation Technology (Computer Animation)
- MySQL(4)
- IoU, GIoU, DIoU and CIoU in target detection
- 基于EEMD+GRU+MLR的时间序列预测
猜你喜欢

Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案

手把手教你Charles抓包工具使用

RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S

A semi-supervised Laplace skyhawk optimization depth nuclear extreme learning machine for classification

如何在Excel 里倒序排列表格数据 || csv表格倒序排列数据

数据库:整理四个实用的SQLServer脚本函数

误差指标分析计算之matlab实现【开源1.0.0版】

Mac安装PHP开发环境

MAML principle explanation and code implementation

Microsoft Store 微软应用商店无法连接网络,错误代码:0x80131500
随机推荐
电脑软件:推荐一款磁盘空间分析工具——WizTree
Mac安装PHP开发环境
狗都能看懂的Self-Attention讲解
为什么不使用VS管理QT项目
matlab的2DCNN、1DCNN、BP、SVM故障诊断与结果可视化
matlab封闭曲线拟合 (针对一些列离散点)
网络端口大全
DenseNet详解及Keras复现代码
目标检测中的IoU、GIoU、DIoU与CIoU
数据库:整理四个实用的SQLServer脚本函数
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
秒杀系统设计
Computer knowledge: desktop computers should choose the brand and assembly, worthy of collection
核心价值观编码器【matlab版】
Nacos 原理
基于爬行动物搜索RSA优化LSTM的时间序列预测
Detailed explanation of DenseNet and Keras reproduction code
Implementation of ICEEMDAN Decomposition Code in MATLAB
格拉姆角场GAF将时序数据转换为图像并应用于故障诊断
VMD结合ISSA优化LSSVM功率预测