{"id":7213,"date":"2024-11-14T16:16:49","date_gmt":"2024-11-14T08:16:49","guid":{"rendered":"https:\/\/fwq.ai\/blog\/7213\/"},"modified":"2024-11-14T16:16:49","modified_gmt":"2024-11-14T08:16:49","slug":"nextcloud-%e6%90%ad%e5%bb%ba%e6%97%b6%e9%81%87%e5%88%b0-sql-%e9%94%99%e8%af%af-1071%ef%bc%9a%e6%8c%87%e5%ae%9a%e7%9a%84%e9%94%ae%e5%80%bc%e5%a4%aa%e9%95%bf%ef%bc%8c%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/7213\/","title":{"rendered":"Nextcloud \u642d\u5efa\u65f6\u9047\u5230 SQL \u9519\u8bef 1071\uff1a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173061134688171.jpg\" class=\"aligncenter\" title=\"Nextcloud \u642d\u5efa\u65f6\u9047\u5230 SQL \u9519\u8bef 1071\uff1a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"Nextcloud \u642d\u5efa\u65f6\u9047\u5230 SQL \u9519\u8bef 1071\uff1a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>nextcloud \u642d\u5efa\u65f6 sql \u9519\u8bef 1071<\/strong><\/p>\n<p>\u5728\u8bbe\u7f6e nextcloud \u65f6\uff0c\u4f7f\u7528  5.5 \u7248\u672c\u65f6\u53ef\u80fd\u4f1a\u9047\u5230 sql \u9519\u8bef 1071\uff1a<\/p>\n<pre>SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u9519\u8bef\u8868\u793a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u8d85\u51fa\u6700\u5927\u952e\u957f\u9650\u5236\uff081000 \u5b57\u8282\uff09\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\uff1f<\/strong><\/p>\n<p>nextcloud \u7684\u5b89\u88c5\u9700\u8981 innodb \u5b58\u50a8\u5f15\u64ce\u3002\u5728 amh \u9762\u677f\u4e2d\uff0c\u542f\u7528\u4ee5\u4e0b\u8bbe\u7f6e\uff1a<\/p>\n<ul>\n<li>\u6570\u636e\u5e93\u53c2\u6570\u914d\u7f6e\uff1ainnodb \u5f15\u64ce (innodb_engine)<\/li>\n<\/ul>\n<p>\u5f00\u542f\u6b64\u9879\u540e\uff0c\u91cd\u65b0\u5b89\u88c5\u5373\u53ef\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fNextcloud \u642d\u5efa\u65f6\u9047\u5230 SQL \u9519\u8bef 1071\uff1a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nextcloud \u642d\u5efa\u65f6 sql \u9519\u8bef 1071 \u5728\u8bbe\u7f6e nextcloud \u65f6\uff0c\u4f7f\u7528 5.5 \u7248\u672c\u65f6\u53ef\u80fd\u4f1a\u9047\u5230 sql \u9519\u8bef 1071\uff1a SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes \u767b\u5f55\u540e\u590d\u5236 \u6b64\u9519\u8bef\u8868\u793a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u8d85\u51fa\u6700\u5927\u952e\u957f\u9650\u5236\uff081000 \u5b57\u8282\uff09\u3002 \u5982\u4f55\u5904\u7406\uff1f nextcloud \u7684\u5b89\u88c5\u9700\u8981 innodb \u5b58\u50a8\u5f15\u64ce\u3002\u5728 amh \u9762\u677f\u4e2d\uff0c\u542f\u7528\u4ee5\u4e0b\u8bbe\u7f6e\uff1a \u6570\u636e\u5e93\u53c2\u6570\u914d\u7f6e\uff1ainnodb \u5f15\u64ce (innodb_engine) \u5f00\u542f\u6b64\u9879\u540e\uff0c\u91cd\u65b0\u5b89\u88c5\u5373\u53ef\u89e3\u51b3\u95ee\u9898\u3002 \u4ee5\u4e0a\u5c31\u662fNextcloud \u642d\u5efa\u65f6\u9047\u5230 SQL \u9519\u8bef 1071\uff1a\u6307\u5b9a\u7684\u952e\u503c\u592a\u957f\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-7213","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=7213"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7213\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=7213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=7213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=7213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}