{"id":178586,"date":"2024-11-08T19:12:19","date_gmt":"2024-11-08T11:12:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/178586\/"},"modified":"2024-11-08T19:12:20","modified_gmt":"2024-11-08T11:12:20","slug":"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9mysql%e9%8c%af%e8%aa%a42039-cr_shared_memory_connect_answer_error-%e6%97%a0%e6%b3%95%e6%89%93%e5%bc%80%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%ef%bc%9b%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/178586\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9MySQL\u932f\u8aa42039 &#8211; (CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR) \u65e0\u6cd5\u6253\u5f00\u5171\u4eab\u5185\u5b58\uff1b\u670d\u52a1\u5668\u672a\u6536\u5230\u7b54\u590d\u4e8b\u4ef6\uff08%lu\uff09"},"content":{"rendered":"<h1 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9mysql%e9%8c%af%e8%aa%a42039-cr_shared_memory_connect_answer_error-%e7%84%a1%e6%b3%95%e6%89%93%e9%96%8b%e5%85%b1%e4%ba%ab%e5%85%a7%e5%ad%98%ef%bc%9b%e4%bc%ba-qXFpRncGnv\">\u5982\u4f55\u4fee\u5fa9MySQL\u932f\u8aa42039 &#8211; (CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR) \u7121\u6cd5\u6253\u958b\u5171\u4eab\u5167\u5b58\uff1b\u4f3a\u670d\u5668\u672a\u6536\u5230\u7b54\u5fa9\u4e8b\u4ef6\uff08%lu\uff09<\/h1>\n<p>\u5728\u4f7f\u7528MySQL\u6578\u64da\u5eab\u6642\uff0c\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\uff0c\u5176\u4e2d\u4e4b\u4e00\u662f\u932f\u8aa42039\uff0c\u5177\u9ad4\u8868\u73fe\u70ba\u201c(CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR) \u7121\u6cd5\u6253\u958b\u5171\u4eab\u5167\u5b58\uff1b\u4f3a\u670d\u5668\u672a\u6536\u5230\u7b54\u5fa9\u4e8b\u4ef6\uff08%lu\uff09\u201d\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207MySQL\u7684\u5171\u4eab\u5167\u5b58\u9023\u63a5\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728Windows\u74b0\u5883\u4e2d\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90-qXFpRncGnv\">\u932f\u8aa4\u539f\u56e0\u5206\u6790<\/h2>\n<p>MySQL\u7684\u5171\u4eab\u5167\u5b58\u9023\u63a5\u662f\u4e00\u7a2e\u9ad8\u6548\u7684\u6578\u64da\u50b3\u8f38\u65b9\u5f0f\uff0c\u7279\u5225\u9069\u5408\u5728\u540c\u4e00\u53f0\u6a5f\u5668\u4e0a\u7684\u61c9\u7528\u7a0b\u5e8f\u4e4b\u9593\u9032\u884c\u901a\u4fe1\u3002\u7136\u800c\uff0c\u7576MySQL\u4f3a\u670d\u5668\u7121\u6cd5\u6b63\u78ba\u555f\u52d5\u5171\u4eab\u5167\u5b58\u6642\uff0c\u5c31\u6703\u51fa\u73fe\u932f\u8aa42039\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u80fd\u7684\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>MySQL\u4f3a\u670d\u5668\u672a\u555f\u52d5\uff1a<\/strong>\u5982\u679cMySQL\u4f3a\u670d\u5668\u672a\u904b\u884c\uff0c\u5ba2\u6236\u7aef\u5c07\u7121\u6cd5\u9023\u63a5\u5230\u5171\u4eab\u5167\u5b58\u3002<\/li>\n<li><strong>\u914d\u7f6e\u554f\u984c\uff1a<\/strong>MySQL\u7684\u914d\u7f6e\u6587\u4ef6\uff08my.cnf\u6216my.ini\uff09\u4e2d\u53ef\u80fd\u7f3a\u5c11\u5171\u4eab\u5167\u5b58\u7684\u76f8\u95dc\u8a2d\u7f6e\u3002<\/li>\n<li><strong>\u6b0a\u9650\u554f\u984c\uff1a<\/strong>\u64cd\u4f5c\u7cfb\u7d71\u7684\u6b0a\u9650\u8a2d\u7f6e\u53ef\u80fd\u963b\u6b62MySQL\u8a2a\u554f\u5171\u4eab\u5167\u5b58\u3002<\/li>\n<li><strong>\u9632\u706b\u7246\u6216\u5b89\u5168\u8edf\u4ef6\uff1a<\/strong>\u67d0\u4e9b\u9632\u706b\u7246\u6216\u5b89\u5168\u8edf\u4ef6\u53ef\u80fd\u6703\u963b\u6b62\u5171\u4eab\u5167\u5b58\u7684\u8a2a\u554f\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-qXFpRncGnv\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<p>\u91dd\u5c0d\u4e0a\u8ff0\u539f\u56e0\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u6c7a\u65b9\u6848\uff0c\u53ef\u4ee5\u5e6b\u52a9\u60a8\u4fee\u5fa9MySQL\u932f\u8aa42039\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8dmysql%e4%bc%ba%e6%9c%8d%e5%99%a8%e6%98%af%e5%90%a6%e9%81%8b%e8%a1%8c-qXFpRncGnv\">1. \u78ba\u8a8dMySQL\u4f3a\u670d\u5668\u662f\u5426\u904b\u884c<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6aa2\u67e5MySQL\u4f3a\u670d\u5668\u662f\u5426\u6b63\u5728\u904b\u884c\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u78ba\u8a8d\uff1a<\/p>\n<pre><code>systemctl status mysql<\/code><\/pre>\n<p>\u5982\u679c\u4f3a\u670d\u5668\u672a\u904b\u884c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5\u5b83\uff1a<\/p>\n<pre><code>systemctl start mysql<\/code><\/pre>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-qXFpRncGnv\">2. \u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u78ba\u4fdd\u60a8\u7684MySQL\u914d\u7f6e\u6587\u4ef6\u4e2d\u5305\u542b\u5171\u4eab\u5167\u5b58\u7684\u8a2d\u7f6e\u3002\u60a8\u53ef\u4ee5\u5728my.cnf\u6216my.ini\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>[mysqld]\nshared-memory=1<\/code><\/pre>\n<p>\u4fdd\u5b58\u66f4\u6539\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5MySQL\u4f3a\u670d\u5668\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%ac%8a%e9%99%90%e8%a8%ad%e7%bd%ae-qXFpRncGnv\">3. \u6aa2\u67e5\u6b0a\u9650\u8a2d\u7f6e<\/h3>\n<p>\u78ba\u4fddMySQL\u7528\u6236\u64c1\u6709\u8a2a\u554f\u5171\u4eab\u5167\u5b58\u7684\u6b0a\u9650\u3002\u5728Windows\u7cfb\u7d71\u4e2d\uff0c\u60a8\u53ef\u4ee5\u6aa2\u67e5\u7528\u6236\u7684\u6b0a\u9650\u8a2d\u7f6e\uff0c\u78ba\u4fddMySQL\u670d\u52d9\u64c1\u6709\u8db3\u5920\u7684\u6b0a\u9650\u4f86\u8a2a\u554f\u5171\u4eab\u5167\u5b58\u3002<\/p>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e9%98%b2%e7%81%ab%e7%89%86%e5%92%8c%e5%ae%89%e5%85%a8%e8%bb%9f%e4%bb%b6-qXFpRncGnv\">4. \u6aa2\u67e5\u9632\u706b\u7246\u548c\u5b89\u5168\u8edf\u4ef6<\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u9632\u706b\u7246\u6216\u5b89\u5168\u8edf\u4ef6\uff0c\u8acb\u6aa2\u67e5\u5176\u8a2d\u7f6e\uff0c\u78ba\u4fdd\u4e0d\u6703\u963b\u6b62MySQL\u7684\u5171\u4eab\u5167\u5b58\u8a2a\u554f\u3002\u60a8\u53ef\u80fd\u9700\u8981\u5728\u9632\u706b\u7246\u4e2d\u6dfb\u52a0\u4f8b\u5916\u898f\u5247\uff0c\u4ee5\u5141\u8a31MySQL\u7684\u6d41\u91cf\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-qXFpRncGnv\">\u7e3d\u7d50<\/h2>\n<p>MySQL\u932f\u8aa42039\u901a\u5e38\u8207\u5171\u4eab\u5167\u5b58\u7684\u914d\u7f6e\u548c\u8a2a\u554f\u6709\u95dc\u3002\u901a\u904e\u78ba\u8a8dMySQL\u4f3a\u670d\u5668\u7684\u904b\u884c\u72c0\u614b\u3001\u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6\u3001\u78ba\u4fdd\u6b0a\u9650\u8a2d\u7f6e\u6b63\u78ba\u4ee5\u53ca\u6aa2\u67e5\u9632\u706b\u7246\u8a2d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u670d\u52d9\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u4f86\u6258\u7ba1\u60a8\u7684MySQL\u4f3a\u670d\u5668\uff0c\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u66f4\u9ad8\u7684\u53ef\u7528\u6027\u548c\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4fee\u5fa9MySQL\u932f\u8aa42039\u7684\u6307\u5357\uff0c\u89e3\u6c7a\u5171\u4eab\u5167\u5b58\u9023\u63a5\u554f\u984c\uff0c\u78ba\u4fdd\u4f3a\u670d\u5668\u80fd\u6b63\u78ba\u63a5\u6536\u7b54\u5fa9\u4e8b\u4ef6\u3002<\/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-178586","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/178586","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=178586"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/178586\/revisions"}],"predecessor-version":[{"id":178587,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/178586\/revisions\/178587"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=178586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=178586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=178586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}