{"id":1501,"date":"2023-02-21T16:03:30","date_gmt":"2023-02-21T08:03:30","guid":{"rendered":"http:\/\/175.24.184.226\/?p=1501"},"modified":"2023-02-21T16:03:30","modified_gmt":"2023-02-21T08:03:30","slug":"1118-row-size-too-large-8126","status":"publish","type":"post","link":"\/?p=1501","title":{"rendered":"1118 &#8211; Row size too large (> 8126)"},"content":{"rendered":"<h2>1.\u95ee\u9898\u63cf\u8ff0\uff1a<\/h2>\n<pre><code>1118 - Row size too large (&gt; 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.<\/code><\/pre>\n<h2>2.\u4ea7\u751f\u539f\u56e0\uff1a<\/h2>\n<p>1.\u8868\u4e2d\u6570\u636e\u591a\uff0c\u4ea7\u751f\u7684\u65e5\u5fd7\u8fc7\u591a\uff0c\u9ed8\u8ba4\u7684\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f\u592a\u5c0f\u4e86\uff1b   <\/p>\n<p>2.\u4e0d\u540c\u5f15\u64ce\u4e4b\u95f4\u4f7f\u7528\u7684\u5b58\u50a8\u683c\u5f0f\u4e0d\u540c\u3002MyISAM\u67093\u79cd\u884c\u5b58\u50a8\u683c\u5f0f\uff1afixed\/dynamic\/compressed\u3002InnoDb\u5728MyIASM\u57fa\u7840\u4e0a\u65b0\u5f15\u5165\u4e86Barracuda\u3002\u81f3\u4e8e\u4e0d\u540c\u5f15\u64ce\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u5404\u79cd\u5b58\u50a8\u683c\u5f0f\u4e4b\u95f4\u7684\u533a\u522b\uff0c <\/p>\n<p>3.\u89e3\u51b3\u65b9\u6848   <\/p>\n<p>\u65b9\u5f0f\u4e00\uff1a\u4fee\u6539Mysql\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6   \u628aMysql\u6570\u636e\u5e93\u7684my.ini\u914d\u7f6e\u9879innodb_log_file_size=512M\u4fee\u65391024M\uff0c\u91cd\u542f\u6570\u636e\u5e93\u670d\u52a1\u5c31\u53ef\u4ee5\u4e86\u3002 <\/p>\n<p>\u65b9\u5f0f\u4e8c\uff1a\u4fee\u6539\u5176\u4ed6\u5f15\u64ce   <\/p>\n<p>\u4fee\u6539\u524d\u6570\u636e\u5e93\u4fe1\u606f\uff1a <\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20230221160136784.png\" alt=\"image-20230221160136784\" \/><\/p>\n<p>\u4fee\u6539\u4e3a\u4e00\u4e0b\u5f15\u64ce\uff1a <\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20230221160209667.png\" alt=\"image-20230221160209667\" \/> <\/p>\n<p>\u65b9\u5f0f\u4e09\uff1a   <\/p>\n<p>\u5c1d\u8bd5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u9009\u9879\uff1a   <\/p>\n<p>\u8981\u6fc0\u6d3b\u65b0\u6587\u4ef6\u683c\u5f0f\uff1a innodb_file_format = Barracuda  <\/p>\n<p>\u5c06\u6bcf\u4e2a\u8868\u5b58\u50a8\u5728\u81ea\u5df1\u7684\u6587\u4ef6\u4e2d\uff1a innodb_file_per_table = 1   <\/p>\n<p>\u4e3a\u9632\u6b62\u51fa\u73b0\u610f\u5916\uff1a innodb_strict_mode = ON   <\/p>\n<p>\u8981\u5b58\u50a8\u957f\u7684\u53ef\u53d8\u957f\u5ea6\u5217\u503c\uff0c\u8bf7\u5bf9\u5927\u578b\u8868\u4f7f\u7528\u52a8\u6001\u6216\u538b\u7f29\u884c\u683c\u5f0f\u3002  <\/p>\n<p>\u4f8b\u5982\uff0c\u4f7f\u7528ALTER TABLE LargeTable ENGINE = InnoDB ROW_FORMAT = DYNAMIC;    <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u95ee\u9898\u63cf\u8ff0\uff1a 1118 &#8211; Row size too large (&gt; 8126). Changing some columns   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[23],"tags":[],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1501"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1501"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1501\/revisions"}],"predecessor-version":[{"id":1502,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1501\/revisions\/1502"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1501"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}