{"id":6930,"date":"2024-11-14T11:50:11","date_gmt":"2024-11-14T03:50:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6930\/"},"modified":"2024-11-14T11:50:11","modified_gmt":"2024-11-14T03:50:11","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e7%99%bb%e5%bd%95-mysql-%e6%8a%a5%e9%94%99%ef%bc%9a%e5%a6%82%e4%bd%95%e6%8e%92%e6%9f%a5-my-cnf-%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6930\/","title":{"rendered":"Linux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u5982\u4f55\u6392\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173011104374106.jpg\" class=\"aligncenter\" title=\"Linux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u5982\u4f55\u6392\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\uff1f\u63d2\u56fe\" alt=\"Linux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u5982\u4f55\u6392\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u7591\u96be\u89e3\u7b54<\/strong><\/p>\n<p>\u5728 Linux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u65f6\u9047\u5230\u62a5\u9519\uff0c\u901a\u5e38\u662f\u7531\u4e8e\u914d\u7f6e\u95ee\u9898\u5bfc\u81f4\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u68c0\u67e5\u70b9\uff1a<\/p>\n<p><strong>\u68c0\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p>\u6b64\u5904\u63d0\u793a\u7684\u89e3\u51b3\u65b9\u6848\u662f\u68c0\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u3002\u539f\u56e0\u5982\u4e0b\uff1a<\/p>\n<p><strong>my.cnf \u6587\u4ef6<\/strong><\/p>\n<p>my.cnf \u662f MySQL \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\uff0c\u4f8b\u5982\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u8fde\u63a5\u9009\u9879\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u4e0d\u6b63\u786e\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u767b\u5f55\u9519\u8bef\u3002<\/p>\n<p><strong>\u5e38\u89c1\u9519\u8bef<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5728 my.cnf \u6587\u4ef6\u4e2d\u53ef\u80fd\u5bfc\u81f4\u767b\u5f55\u62a5\u9519\u7684\u5e38\u89c1\u9519\u8bef\uff1a<\/p>\n<ul>\n<li> <strong>\u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e\uff1a<\/strong>\u786e\u4fdd\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0e\u60a8\u8981\u767b\u5f55\u7684 MySQL \u5b9e\u4f8b\u4e2d\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u5339\u914d\u3002<\/li>\n<li> <strong>\u9519\u8bef\u7684\u7aef\u53e3\uff1a<\/strong>\u68c0\u67e5 my.cnf \u4e2d\u6307\u5b9a\u7684\u7aef\u53e3\u662f\u5426\u4e0e MySQL \u6b63\u5728\u76d1\u542c\u7684\u7aef\u53e3\u4e00\u81f4\u3002<\/li>\n<li> <strong>\u9519\u8bef\u7684\u4e3b\u673a\uff1a<\/strong>\u5982\u679c\u5c1d\u8bd5\u8fde\u63a5\u5230\u8fdc\u7a0b MySQL \u670d\u52a1\u5668\uff0c\u8bf7\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u4e3b\u673a\u540d\u79f0\u6216 IP \u5730\u5740\u6b63\u786e\u3002<\/li>\n<\/ul>\n<p><strong>\u68c0\u67e5\u6b65\u9aa4<\/strong><\/p>\n<ol>\n<li>\u627e\u5230 my.cnf \u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e \/etc\/my.cnf \u6216 \/etc\/\/my.cnf\u3002<\/li>\n<li>\u68c0\u67e5\u6587\u4ef6\u4e2d\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u7aef\u53e3\u548c\u4e3b\u673a\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/li>\n<li>\u4fdd\u5b58\u66f4\u6539\u5e76\u91cd\u65b0\u542f\u52a8 MySQL \u670d\u52a1\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662fLinux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u5982\u4f55\u6392\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\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>\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u7591\u96be\u89e3\u7b54 \u5728 Linux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u65f6\u9047\u5230\u62a5\u9519\uff0c\u901a\u5e38\u662f\u7531\u4e8e\u914d\u7f6e\u95ee\u9898\u5bfc\u81f4\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u68c0\u67e5\u70b9\uff1a \u68c0\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6 \u6b64\u5904\u63d0\u793a\u7684\u89e3\u51b3\u65b9\u6848\u662f\u68c0\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u3002\u539f\u56e0\u5982\u4e0b\uff1a my.cnf \u6587\u4ef6 my.cnf \u662f MySQL \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\uff0c\u4f8b\u5982\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u8fde\u63a5\u9009\u9879\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u4e0d\u6b63\u786e\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u767b\u5f55\u9519\u8bef\u3002 \u5e38\u89c1\u9519\u8bef \u4ee5\u4e0b\u662f\u4e00\u4e9b\u5728 my.cnf \u6587\u4ef6\u4e2d\u53ef\u80fd\u5bfc\u81f4\u767b\u5f55\u62a5\u9519\u7684\u5e38\u89c1\u9519\u8bef\uff1a \u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e\uff1a\u786e\u4fdd\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0e\u60a8\u8981\u767b\u5f55\u7684 MySQL \u5b9e\u4f8b\u4e2d\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u5339\u914d\u3002 \u9519\u8bef\u7684\u7aef\u53e3\uff1a\u68c0\u67e5 my.cnf \u4e2d\u6307\u5b9a\u7684\u7aef\u53e3\u662f\u5426\u4e0e MySQL \u6b63\u5728\u76d1\u542c\u7684\u7aef\u53e3\u4e00\u81f4\u3002 \u9519\u8bef\u7684\u4e3b\u673a\uff1a\u5982\u679c\u5c1d\u8bd5\u8fde\u63a5\u5230\u8fdc\u7a0b MySQL \u670d\u52a1\u5668\uff0c\u8bf7\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u4e3b\u673a\u540d\u79f0\u6216 IP \u5730\u5740\u6b63\u786e\u3002 \u68c0\u67e5\u6b65\u9aa4 \u627e\u5230 my.cnf \u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e \/etc\/my.cnf \u6216 \/etc\/\/my.cnf\u3002 \u68c0\u67e5\u6587\u4ef6\u4e2d\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u7aef\u53e3\u548c\u4e3b\u673a\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002 \u4fdd\u5b58\u66f4\u6539\u5e76\u91cd\u65b0\u542f\u52a8 MySQL \u670d\u52a1\u3002 \u4ee5\u4e0a\u5c31\u662fLinux \u670d\u52a1\u5668\u4e0a\u767b\u5f55 MySQL \u62a5\u9519\uff1a\u5982\u4f55\u6392\u67e5 my.cnf \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\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-6930","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6930","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=6930"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6930\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}