{"id":71013,"date":"2024-10-15T14:15:16","date_gmt":"2024-10-15T06:15:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/71013\/"},"modified":"2024-10-15T14:15:16","modified_gmt":"2024-10-15T06:15:16","slug":"mysql-error-number-my-012696-symbol-er_ib_msg_871-sqlstate-hy000-%e6%8a%a5%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/71013\/","title":{"rendered":"MySQL Error number: MY-012696; Symbol: ER_IB_MSG_871; SQLSTATE: HY000 \u62a5\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"mysql-%e9%8c%af%e8%aa%a4%e8%99%9f%e7%a2%bc%ef%bc%9amy-012696%ef%bc%9b%e7%ac%a6%e8%99%9f%ef%bc%9aer_ib_msg_871%ef%bc%9bsqlstate%ef%bc%9ahy000-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b-YlRkwFdOLb\">MySQL \u932f\u8aa4\u865f\u78bc\uff1aMY-012696\uff1b\u7b26\u865f\uff1aER_IB_MSG_871\uff1bSQLSTATE\uff1aHY000 \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 MySQL \u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f\u932f\u8aa4\u865f\u78bc MY-012696\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207 InnoDB \u5b58\u5132\u5f15\u64ce\u7684\u554f\u984c\u6709\u95dc\uff0c\u4e26\u4e14\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7121\u6cd5\u6b63\u5e38\u904b\u884c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u8a72\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e6%a6%82%e8%bf%b0-YlRkwFdOLb\">\u932f\u8aa4\u6982\u8ff0<\/h2>\n<p>\u932f\u8aa4\u865f\u78bc MY-012696\uff0c\u7b26\u865f ER_IB_MSG_871\uff0cSQLSTATE \u70ba HY000\uff0c\u901a\u5e38\u8868\u793a InnoDB \u5b58\u5132\u5f15\u64ce\u5728\u8655\u7406\u8acb\u6c42\u6642\u9047\u5230\u4e86\u554f\u984c\u3002\u9019\u53ef\u80fd\u662f\u7531\u65bc\u6578\u64da\u5eab\u7684\u914d\u7f6e\u4e0d\u7576\u3001\u8cc7\u6e90\u4e0d\u8db3\u6216\u6578\u64da\u640d\u58de\u7b49\u539f\u56e0\u5f15\u8d77\u7684\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%8e%9f%e5%9b%a0-YlRkwFdOLb\">\u5e38\u898b\u539f\u56e0<\/h2>\n<ul>\n<li><strong>\u8cc7\u6e90\u4e0d\u8db3\uff1a<\/strong>\u7576\u4f3a\u670d\u5668\u7684\u5167\u5b58\u6216 CPU \u8cc7\u6e90\u4e0d\u8db3\u6642\uff0cInnoDB \u53ef\u80fd\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u5f9e\u800c\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u640d\u58de\uff1a<\/strong>\u5982\u679c\u6578\u64da\u6587\u4ef6\u6216\u65e5\u8a8c\u6587\u4ef6\u640d\u58de\uff0cInnoDB \u53ef\u80fd\u7121\u6cd5\u6b63\u78ba\u8b80\u53d6\u6578\u64da\uff0c\u5f9e\u800c\u5f15\u767c\u932f\u8aa4\u3002<\/li>\n<li><strong>\u914d\u7f6e\u554f\u984c\uff1a<\/strong>\u4e0d\u7576\u7684 MySQL \u914d\u7f6e\u53ef\u80fd\u6703\u5c0e\u81f4 InnoDB \u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u6216\u904b\u884c\u3002<\/li>\n<li><strong>\u7248\u672c\u4e0d\u517c\u5bb9\uff1a<\/strong>\u4f7f\u7528\u4e0d\u517c\u5bb9\u7684 MySQL \u7248\u672c\u6216\u63d2\u4ef6\u4e5f\u53ef\u80fd\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4%e6%ad%a5%e9%a9%9f-YlRkwFdOLb\">\u6545\u969c\u6392\u9664\u6b65\u9a5f<\/h2>\n<p>\u7576\u9047\u5230 MY-012696 \u932f\u8aa4\u6642\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e4%bc%ba%e6%9c%8d%e5%99%a8%e8%b3%87%e6%ba%90-YlRkwFdOLb\">1. \u6aa2\u67e5\u4f3a\u670d\u5668\u8cc7\u6e90<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u4f3a\u670d\u5668\u7684\u5167\u5b58\u548c CPU \u4f7f\u7528\u60c5\u6cc1\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u67e5\u770b\u8cc7\u6e90\u4f7f\u7528\u60c5\u6cc1\uff1a<\/p>\n<pre><code>top<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u8cc7\u6e90\u4f7f\u7528\u7387\u904e\u9ad8\uff0c\u8003\u616e\u5347\u7d1a\u4f3a\u670d\u5668\u6216\u512a\u5316\u61c9\u7528\u7a0b\u5e8f\u4ee5\u6e1b\u5c11\u8cc7\u6e90\u6d88\u8017\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e6%96%87%e4%bb%b6-YlRkwFdOLb\">2. \u6aa2\u67e5\u6578\u64da\u6587\u4ef6<\/h3>\n<p>\u6aa2\u67e5 InnoDB \u6578\u64da\u6587\u4ef6\u548c\u65e5\u8a8c\u6587\u4ef6\u662f\u5426\u5b58\u5728\u640d\u58de\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u5b8c\u6574\u6027\uff1a<\/p>\n<pre><code>CHECK TABLE your_table_name;<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u640d\u58de\uff0c\u8003\u616e\u6062\u5fa9\u6578\u64da\u6216\u4f7f\u7528\u5099\u4efd\u9032\u884c\u4fee\u5fa9\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-YlRkwFdOLb\">3. \u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u6aa2\u67e5 MySQL \u7684\u914d\u7f6e\u6587\u4ef6\uff08my.cnf \u6216 my.ini\uff09\uff0c\u78ba\u4fdd InnoDB \u7684\u914d\u7f6e\u6b63\u78ba\u3002\u7279\u5225\u662f\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<ul>\n<li><code>innodb_buffer_pool_size<\/code><\/li>\n<li><code>innodb_log_file_size<\/code><\/li>\n<li><code>innodb_flush_log_at_trx_commit<\/code><\/li>\n<\/ul>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0-mysql-%e7%89%88%e6%9c%ac-YlRkwFdOLb\">4. \u66f4\u65b0 MySQL \u7248\u672c<\/h3>\n<p>\u5982\u679c\u4f7f\u7528\u7684 MySQL \u7248\u672c\u8f03\u820a\uff0c\u8003\u616e\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-YlRkwFdOLb\">\u9060\u7a0b\u8655\u7406<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7a MY-012696 \u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u65b9\u5f0f\u5be6\u73fe\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528 SSH \u767b\u9304\u4f3a\u670d\u5668\uff1a<\/strong>\u78ba\u4fdd\u60a8\u6709\u8db3\u5920\u7684\u6b0a\u9650\u4f86\u57f7\u884c\u5fc5\u8981\u7684\u547d\u4ee4\u3002<\/li>\n<li><strong>\u9060\u7a0b\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\uff1a<\/strong>\u4f7f\u7528\u5982 phpMyAdmin \u6216 MySQL Workbench \u7b49\u5de5\u5177\u4f86\u7ba1\u7406\u6578\u64da\u5eab\uff0c\u9019\u4e9b\u5de5\u5177\u63d0\u4f9b\u4e86\u76f4\u89c0\u7684\u754c\u9762\u4f86\u6aa2\u67e5\u548c\u4fee\u5fa9\u6578\u64da\u5eab\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-YlRkwFdOLb\">\u7e3d\u7d50<\/h2>\n<p>MySQL \u932f\u8aa4\u865f\u78bc MY-012696 \u53ef\u80fd\u6703\u5c0d\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u9020\u6210\u5f71\u97ff\uff0c\u4f46\u901a\u904e\u6aa2\u67e5\u4f3a\u670d\u5668\u8cc7\u6e90\u3001\u6578\u64da\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u4ee5\u53ca\u66f4\u65b0 MySQL \u7248\u672c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u670d\u52d9\uff0c\u4ee5\u7372\u5f97\u66f4\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u74b0\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot MySQL Error MY-012696 (ER_IB_MSG_871, SQLSTATE: HY000) with remote handling solutions for effective fault resolution.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-71013","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/71013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=71013"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/71013\/revisions"}],"predecessor-version":[{"id":71014,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/71013\/revisions\/71014"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=71013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=71013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=71013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}