{"id":6229,"date":"2024-11-14T11:31:12","date_gmt":"2024-11-14T03:31:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6229\/"},"modified":"2024-11-14T11:31:12","modified_gmt":"2024-11-14T03:31:12","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8bmysql%e6%98%af%e5%90%a6%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6229\/","title":{"rendered":"\u5982\u4f55\u67e5\u770bmysql\u662f\u5426\u542f\u52a8"},"content":{"rendered":"<p><strong>\u5982\u4f55\u67e5\u770b  \u662f\u5426\u542f\u52a8<\/strong><\/p>\n<p>MySQL \u542f\u52a8\u72b6\u6001\u7684\u67e5\u770b\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528\u547d\u4ee4\u884c<\/strong><\/p>\n<p>\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>ps -ef | grep mysql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\uff0c\u5305\u62ec\u4e3b\u8fdb\u7a0b\u548c\u4efb\u4f55\u8f85\u52a9\u8fdb\u7a0b\u3002\u5982\u679c\u8f93\u51fa\u4e3a\u7a7a\uff0c\u5219\u8868\u793a MySQL \u672a\u542f\u52a8\u3002<\/p>\n<p><strong>2. \u4f7f\u7528 MySQL \u7ba1\u7406\u5de5\u5177<\/strong><\/p>\n<p>\u5982\u679c\u5df2\u5b89\u88c5 MySQL \u7ba1\u7406\u5de5\u5177\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u8be5\u5de5\u5177\u68c0\u67e5 MySQL \u72b6\u6001\u3002\u4f8b\u5982\uff0c\u5728 MySQL Workbench \u4e2d\uff0c\u8f6c\u5230\u201c\u670d\u52a1\u5668\u201d\u9009\u9879\u5361\u5e76\u5355\u51fb\u201c\u72b6\u6001\u201d\u6309\u94ae\u3002\u5b83\u5c06\u663e\u793a\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\u548c\u5f53\u524d\u72b6\u6001\u3002<\/p>\n<p><strong>3. \u68c0\u67e5 MySQL \u65e5\u5fd7<\/strong><\/p>\n<p>\u5982\u679c MySQL \u65e0\u6cd5\u542f\u52a8\uff0c\u5219\u9519\u8bef\u65e5\u5fd7\u4e2d\u53ef\u80fd\u4f1a\u5305\u542b\u6709\u52a9\u4e8e\u8bca\u65ad\u95ee\u9898\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u68c0\u67e5\u4ee5\u4e0b\u65e5\u5fd7\u6587\u4ef6\uff1a<\/p>\n<ul>\n<li> <strong>Windows:<\/strong> %ProgramData%MySQLMySQL Server 8.0MySQL Server 8.0.log<\/li>\n<li> <strong>Linux:<\/strong> \/var\/log\/mysql\/error.log<\/li>\n<\/ul>\n<p><strong>4. \u68c0\u67e5 MySQL \u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p>MySQL \u5728\u542f\u52a8\u65f6\u4f1a\u8bfb\u53d6\u5176\u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u79f0\u4e3a my.cnf\uff09\u3002\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4ee5\u786e\u4fdd\u63d0\u4f9b\u4e86\u6b63\u786e\u7684\u8fde\u63a5\u548c\u7aef\u53e3\u4fe1\u606f\u3002<\/p>\n<p><strong>5. \u4f7f\u7528 MySQL \u670d\u52a1\u7ba1\u7406\u5668\uff08Windows\uff09<\/strong><\/p>\n<p>\u5728 Windows \u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528 MySQL \u670d\u52a1\u7ba1\u7406\u5668\u6765\u67e5\u770b MySQL \u72b6\u6001\u548c\u542f\u52a8\u6216\u505c\u6b62\u670d\u52a1\u3002\u8f6c\u5230\u201c\u63a7\u5236\u9762\u677f\u201d&gt;\u201c\u7ba1\u7406\u5de5\u5177\u201d&gt;\u201c\u670d\u52a1\u201d\u5e76\u67e5\u627e\u201cMySQL\u201d\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u67e5\u770b\u662f\u5426\u542f\u52a8\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>\u5982\u4f55\u67e5\u770b \u662f\u5426\u542f\u52a8 MySQL \u542f\u52a8\u72b6\u6001\u7684\u67e5\u770b\u65b9\u6cd5\u5982\u4e0b\uff1a 1. \u4f7f\u7528\u547d\u4ee4\u884c \u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a ps -ef | grep mysql \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u663e\u793a\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\uff0c\u5305\u62ec\u4e3b\u8fdb\u7a0b\u548c\u4efb\u4f55\u8f85\u52a9\u8fdb\u7a0b\u3002\u5982\u679c\u8f93\u51fa\u4e3a\u7a7a\uff0c\u5219\u8868\u793a MySQL \u672a\u542f\u52a8\u3002 2. \u4f7f\u7528 MySQL \u7ba1\u7406\u5de5\u5177 \u5982\u679c\u5df2\u5b89\u88c5 MySQL \u7ba1\u7406\u5de5\u5177\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u8be5\u5de5\u5177\u68c0\u67e5 MySQL \u72b6\u6001\u3002\u4f8b\u5982\uff0c\u5728 MySQL Workbench \u4e2d\uff0c\u8f6c\u5230\u201c\u670d\u52a1\u5668\u201d\u9009\u9879\u5361\u5e76\u5355\u51fb\u201c\u72b6\u6001\u201d\u6309\u94ae\u3002\u5b83\u5c06\u663e\u793a\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\u548c\u5f53\u524d\u72b6\u6001\u3002 3. \u68c0\u67e5 MySQL \u65e5\u5fd7 \u5982\u679c MySQL \u65e0\u6cd5\u542f\u52a8\uff0c\u5219\u9519\u8bef\u65e5\u5fd7\u4e2d\u53ef\u80fd\u4f1a\u5305\u542b\u6709\u52a9\u4e8e\u8bca\u65ad\u95ee\u9898\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u68c0\u67e5\u4ee5\u4e0b\u65e5\u5fd7\u6587\u4ef6\uff1a Windows: %ProgramData%MySQLMySQL Server 8.0MySQL Server 8.0.log Linux: \/var\/log\/mysql\/error.log 4. \u68c0\u67e5 MySQL \u914d\u7f6e\u6587\u4ef6 MySQL \u5728\u542f\u52a8\u65f6\u4f1a\u8bfb\u53d6\u5176\u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u79f0\u4e3a my.cnf\uff09\u3002\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4ee5\u786e\u4fdd\u63d0\u4f9b\u4e86\u6b63\u786e\u7684\u8fde\u63a5\u548c\u7aef\u53e3\u4fe1\u606f\u3002 5. \u4f7f\u7528 MySQL [&hellip;]<\/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-6229","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6229","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=6229"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6229\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}