当前位置:网站首页>Mysql database reports an error: row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT=DY
Mysql database reports an error: row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT=DY
2022-07-06 12:41:00 【wx5caecf2ed0645】
1. Problem description :
Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help
2. The reasons causing :
1. There are many data in the table , Too many logs are generated , The default log file size is too small ;
2. Different engines use different storage formats .MyISAM Yes 3 A row storage format :fixed/dynamic/compressed.InnoDb stay MyIASM Based on the new introduction Barracuda. As for the default settings of different engines , And the differences between various storage formats ,
3. Solution
Mode one : modify Mysql Database configuration file
hold Mysql Database my.ini Configuration item innodb_log_file_size=512M modify 1024M, Just restart the database service .
Mode two : Modify other engines
Database information before modification :
Change to engine :
Mode three :
Try adding the following options to the configuration file :
To activate the new file format : innodb_file_format = Barracuda
Store each table in its own file : innodb_file_per_table = 1
To prevent accidents : innodb_strict_mode = ON
To store long variable length column values , Please use dynamic or compressed row format for large tables .
for example , Use ALTER TABLE LargeTable ENGINE = InnoDB ROW_FORMAT = DYNAMIC;
边栏推荐
- Mysqldump error1066 error solution
- Compilation principle: preprocessing of source program and design and implementation of lexical analysis program (including code)
- Common DOS commands
- Vulnhub target: hacknos_ PLAYER V1.1
- [offer78] merge multiple ordered linked lists
- [Offer18]删除链表的节点
- Page performance optimization of video scene
- HCIP Day 12
- level16
- C programming exercise
猜你喜欢
Compilation principle: preprocessing of source program and design and implementation of lexical analysis program (including code)
数据库课程设计:高校教务管理系统(含代码)
FairyGUI简单背包的制作
Single chip Bluetooth wireless burning
(五)R语言入门生物信息学——ORF和序列分析
Basic operations of databases and tables ----- classification of data
Walk into WPF's drawing Bing Dwen Dwen
Expected value (EV)
Office提示您的许可证不是正版弹框解决
Design and implementation of general interface open platform - (39) simple and crude implementation of API services
随机推荐
1041 be unique (20 points (s)) (hash: find the first number that occurs once)
[899]有序队列
Theoretical derivation of support vector machine
[offer9]用两个栈实现队列
[Offer29] 排序的循环链表
Unity3D,阿里云服务器,平台配置
程序设计大作业:教务管理系统(C语言)
2021.11.10汇编考试
Page performance optimization of video scene
Gravure sans fil Bluetooth sur micro - ordinateur à puce unique
There is no red exclamation mark after SVN update
Unity scene jump and exit
JS 函数提升和var变量的声明提升
Unity3D基础入门之粒子系统(属性介绍+火焰粒子系统案例制作)
First use of dosbox
Knowledge summary of request
Unity场景跳转及退出
[leetcode19]删除链表中倒数第n个结点
NRF24L01故障排查
js题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。