当前位置:网站首页>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
边栏推荐
- Binary and decimal system of C language
- C language: making barrels
- UE4夜间打光笔记
- 2837xd code generation - stateflow (2)
- 2837xd 代码生成——StateFlow(4)
- 2837xd Code Generation - stateflow (4)
- In SQL injection, why must the ID of union joint query be equal to 0
- ICLR 2022: how does AI recognize "things I haven't seen"?
- Attack and defense world web advanced area unserialize3
- 2837xd 代码生成——补充(3)
猜你喜欢

Remember the use of add method once

Personal experience & blog status

Error reporting on the first day of work (incomplete awvs unloading)

2837xd code generation module learning (2) -- ADC, epwm module, timer0

Mysql索引

Tools used for Yolo object recognition and data generation

Bugkuctf-web24 (problem solving ideas and steps)

Tinyxml2 reading and modifying files

PI control of grid connected inverter (grid connected mode)

The primary market project galaxy will conduct public offering on coinlist on February 17
随机推荐
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
2837xd code generation - Supplement (1)
Junit5 supports suite methods
Alibaba cloud ack introduction
Blender multi lens (multi stand) switching
Mixed development of uni app -- Taking wechat applet as an example
阿里云ack介绍
PI control of grid connected inverter (grid connected mode)
C language strawberry
Mysql索引
What is call / cc- What is call/cc?
Centos7 one click compilation and installation of PHP script
Record the interesting process of using Xray for the first time
What is the relationship between realizing page watermarking and mutationobserver?
MySQL default transaction isolation level and row lock
Alibaba cloud SLS log service
Skywalking theory and Practice
Introduction to go language
How much is it to develop a system software in Beijing, and what funds are needed to develop the software
[unreal] key to open the door blueprint notes