`
aigo
  • 浏览: 2675837 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

Row size too large (> 8126). Changing some columns to TEXT or BLOB

    博客分类:
  • DB
 
阅读更多

原文:http://stackoverflow.com/questions/15585602/change-limit-for-mysql-row-size-too-large

 

异常信息:

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.

 

解决方法:

The method that worked for the OP there was:

1,Add the following to the my.cnf file under [mysqld] section.

innodb_file_per_table
innodb_file_format = Barracuda

 

 

 

2,ALTER the table to use ROW_FORMAT=COMPRESSED.

ALTER TABLE nombre_tabla
    ENGINE=InnoDB
    ROW_FORMAT=COMPRESSED 
    KEY_BLOCK_SIZE=8;

 

 

如果以上方法还不行,扩大my.ini的配置项innodb_log_file_size。之前设置的是512M,本以为足够大了,按照上述方法修改无效,然后将innodb_log_file_size扩大到1024M,就正常了。

 

分享到:
评论

相关推荐

    mysql5.1中文手册

    BLOB和TEXT类型<br>11.4.4. ENUM类型<br>11.4.5. SET类型<br>11.5. 列类型存储需求<br>11.6. 选择正确的列类型<br>11.7. 使用来自其他数据库引擎的列类型<br>12. 函数和操作符<br>12.1. 操作符<br>12.1.1. 操作符...

    hibernate 教程

    目录<br><br>前言<br>1. 翻译说明<br>1. 在Tomcat中快速上手<br>1.1. 开始Hibernate之旅<br>1.2. 第一个可持久化类<br>1.3. 映射cat<br>1.4. 与猫同乐<br>1.5. 结语<br>2. 体系结构<br>2.1. 总览<br>2.2. JMX集成<br...

    c#数据库操作的3种典型用法

    <br> <br> //Do something to dataset then you can update it to Database.Here I just add a row<br> DataRow row = dataSet.Tables[0].NewRow();<br> row[0] = 10000;<br> row[1] = "new row";<br> dataSet....

    Delphi7.1 Update

    * When the size of a Persistent field in TClientDataSet is set too large, it overwrites neighboring fields upon Post (Quality Central 3974). * TDataSetProvider generates incorrect SQL in response to ...

    C#开发和使用中的23个技巧

    1.怎样定制VC#DataGrid列标题?... <br><br> dt.Columns.Add(dcChehao); <br><br> Oracle:<br><br> select col1||col2 from table<br><br> sql server:<br><br> select col1+col2 from table

    PB并发控制与Row changed between retrieve and update详解

    PB并发控制与Row changed between retrieve and update详解 PB并发控制机制是指在多用户同时访问数据库时,防止数据不一致和丢失的机制。PowerBuilder 提供了多种并发控制策略,包括Key Columns、Key and ...

    基于extjs的.NET3.5控件Coolite 1.0.0.34580(Preview预览版)

    <Columns> ColumnLayout <Cells> TableLayout 37. Removed [XType] Attribute and replaced with XType readonly property. Example (Old) [Xtype("window")] Example (New) ...

    Excel操作

    我引入的是:Microsoft Excel 11.0 Object Library(EXCEL2003), <br> <br> 你申明的时候写出名字空间全路径就应该没有问题了: <br> <br> private Microsoft.Office.Interop.Excel.Application myExcel1; <br> ...

    MYSQL培训经典教程(共两部分) 2/2

    MYSQL高级特性 81<br>4.1 集合函数 82<br>4.1.1 行列计数 82<br>4.1.2统计字段值的数目 82<br>4.1.3 计算字段的平均值 83<br>4.1.4 计算字段值的和 84<br>4.1.5 计算字段值的极值 84<br>4.1.6 总结 86<br>4.2 操作...

    MYSQL培训经典教程(共两部分) 1/2

    MYSQL高级特性 81<br>4.1 集合函数 82<br>4.1.1 行列计数 82<br>4.1.2统计字段值的数目 82<br>4.1.3 计算字段的平均值 83<br>4.1.4 计算字段值的和 84<br>4.1.5 计算字段值的极值 84<br>4.1.6 总结 86<br>4.2 操作...

    BUS Hound

    regardless of bus type<br> Fits on a diskette for easy transportability and quick downloads<br> Drag and drop captured data to other products in html format<br> Save captured data to a text file...

    Software Testing and Continuous Quality Improvement

    Software Testing and Continuous Quality Improvement<br><br>SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1<br>1 Quality Assurance Framework. . . . . . . . . . . . . . . . . ....

    DataTable 导出excel 更新列名或者删除部分列.pdf

    if (dataList.Table.Columns.Contains("ROW_ID")) dataList.Table.Columns.Remove("ROW_ID"); if (dataList.Table.Columns.Contains("LAST_UPDATED_BY")) dataList.Table.Columns.Remove("LAST_UPDATED_BY"); ...

    excel vba 删除空余行和列

    LastColumn = ActiveSheet.UsedRange.Columns.Count LastColumn = LastColumn + ActiveSheet.UsedRange.Column For c = LastColumn To 1 Step -1 If WorksheetFunction.CountA(Columns(c)) = 0 Then Columns(c)....

    c# 操作 execl的dll文件

    <br><br> int columns = dataGridView1.Columns.Count;<br> int rows = dataGridView1.Rows.Count;<br><br> for (int j = 0; j < columns;j++ )<br> {<br> sheet.Cells[0, j].Value = dataGridView1.Columns[j]....

    VB编程资源大全(英文源码 API)

    You can use this sample to find or select an open window, and view information about the window, such as its hwnd, size, and parent window.<END><br>29,launcher.zip<br>This is an ActiveX DLL that ...

    VB编程资源大全(英文源码 控制)

    listtxt.zip<br>This shows how to retrieve the text from the current selection in a listbox.<END><br>11 , list_index.zip<br>This example tells you if the inputted List Index is selected or not.<END>...

    VB编程资源大全(英文源码 数据库)

    The sample creates a new database file and allows you to view, add, or delete records in this database."<END><br>2 , dbprint.zip<br>This demonstrates how to print data from a database.<END><br>3 , ...

    将DataTable或者数组生成CSV文件C#源码

    string[] row = new string[this.dgvStockList.Columns.Count]; for (int n = 0; n < this.dgvStockList.Columns.Count; n++) { row[n] = this.dgvStockList.Rows[i].Cells[n].Value.ToString(); } writer.Add...

    Visual C++ 编程资源大全(英文控件)

    带初始化的对话条(42KB)<END><br><br>1,01.zip<br>Setting selected text to read-only<br>设置选择的文本为只读(2KB)<END><br>2,02.zip<br>Changing word wrap mode<br>改变换行模式(2KB)<END><br>3,03.zip<br>...

Global site tag (gtag.js) - Google Analytics