当前位置:网站首页>ERROR 1118 (42000): Row size too large (> 8126)
ERROR 1118 (42000): Row size too large (> 8126)
2022-07-02 06:35:00 【bengozhong】
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.
这个是在插入长数据的时候报错,在当前模式下,不支持这么长的blob数据插入。
解决步骤:
1、修改innodb_file_per_table和innodb_file_format
①登录数据库直接修改参数:
set global innodb_large_prefix=1
set global innodb_file_per_table=1
set global innodb_file_format=Barracuda
②修改配置文档my.cnf
[mysqld]
innodb_large_prefix=1
innodb_file_per_table = 1
innodb_file_format = Barracuda
2、将表ROW_FORMAT修改为DYNAMIC或COMPRESSED
ALTER TABLE TABLE_NAME
ROW_FORMAT=COMPRESSED
边栏推荐
- Web security and defense
- Vs+qt set application icon
- [ue5] animation redirection: how to import magic tower characters into the game
- 【UE5】动画重定向:如何将幻塔人物导入进游戏玩耍
- MySQL transaction
- 职业规划和发展
- C language: making barrels
- Bugkuctf-web21 (detailed problem solving ideas and steps)
- 2837xd 代码生成——补充(1)
- 2837xd代码生成模块学习(1)——GPIO模块
猜你喜欢
Blender multi lens (multi stand) switching
Ue5 - AI pursuit (blueprint, behavior tree)
[ue5] blueprint making simple mine tutorial
The latest progress and development trend of 2022 intelligent voice technology
Ue5 - ai Pursuit (Blueprint, Behavior tree)
Mysql索引
YOLO物体识别,生成数据用到的工具
Skywalking theory and Practice
Bugkuctf-web21 (detailed problem solving ideas and steps)
2837xd Code Generation - Supplement (1)
随机推荐
A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
[illusory] automatic door blueprint notes
MySQL index
High level application of SQL statements in MySQL database (II)
2837xd code generation module learning (4) -- idle_ task、Simulink Coder
Project practice, redis cluster technology learning (IX)
Personal experience & blog status
[200 Shengxin literatures] 96 joint biomarkers of immune checkpoint inhibitor response in advanced solid tumors
2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
Project practice, redis cluster technology learning (16)
Blender多镜头(多机位)切换
Pycaret | a few lines of code to solve machine learning modeling
The latest progress and development trend of 2022 intelligent voice technology
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
2837xd code generation - Supplement (2)
C language programming problems
Brief analysis of edgedb architecture
YOLO物体识别,生成数据用到的工具
The road is blocked and long, and the line is coming
Project practice, redis cluster technology learning (6)