当前位置:网站首页>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;
边栏推荐
- 编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)
- Expected value (EV)
- Latex learning
- First use of dosbox
- 2021.11.10 compilation examination
- dosbox第一次使用
- Vscode basic configuration
- Theoretical derivation of support vector machine
- Programming homework: educational administration management system (C language)
- Flink late data processing (3)
猜你喜欢
JS variable types and common type conversions
Basic operations of databases and tables ----- creating data tables
编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)
Common properties of location
idea问题记录
Walk into WPF's drawing Bing Dwen Dwen
Postman 中级使用教程【环境变量、测试脚本、断言、接口文档等】
SVN更新后不出现红色感叹号
Lock wait timeout exceeded try restarting transaction
MySQL takes up too much memory solution
随机推荐
Servlet
Générateur d'identification distribué basé sur redis
Arduino get random number
[899]有序队列
Walk into WPF's drawing Bing Dwen Dwen
(1) Introduction Guide to R language - the first step of data analysis
FairyGUI人物状态弹窗
Conditional probability
[offer78] merge multiple ordered linked lists
Pat 1097 duplication on a linked list (25 points)
The dolphin scheduler remotely executes shell scripts through the expect command
基于Redis的分布式锁 以及 超详细的改进思路
Esp8266 connects to onenet cloud platform (mqtt) through Arduino IDE
idea问题记录
SVN更新后不出现红色感叹号
單片機藍牙無線燒錄
Introduction to the daily practice column of the Blue Bridge Cup
js 变量作用域和函数的学习笔记
编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)
(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图