{"id":6584,"date":"2024-11-14T08:26:51","date_gmt":"2024-11-14T00:26:51","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6584\/"},"modified":"2024-11-14T08:26:51","modified_gmt":"2024-11-14T00:26:51","slug":"%e6%80%8e%e4%b9%88%e5%88%a0%e9%99%a4mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e8%bf%9b%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6584\/","title":{"rendered":"\u600e\u4e48\u5220\u9664mysql\u6570\u636e\u5e93\u8fdb\u7a0b"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5220\u9664 mysql \u6570\u636e\u5e93\u8fdb\u7a0b\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u786e\u5b9a\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 id\u3002 2. \u4f7f\u7528 kill \u547d\u4ee4\u5220\u9664\u8be5\u8fdb\u7a0b\uff0c\u4f7f\u7528 pid \u4f5c\u4e3a\u53c2\u6570\u3002 3. \u786e\u8ba4\u8fdb\u7a0b\u5df2\u6210\u529f\u5220\u9664\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202408\/06\/2024080617553185489.jpg\" class=\"aligncenter\" title=\"\u600e\u4e48\u5220\u9664mysql\u6570\u636e\u5e93\u8fdb\u7a0b\u63d2\u56fe\" alt=\"\u600e\u4e48\u5220\u9664mysql\u6570\u636e\u5e93\u8fdb\u7a0b\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b<\/strong><\/p>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b\uff0c\u4f8b\u5982\u5f53\u8fdb\u7a0b\u9047\u5230\u6b7b\u9501\u6216\u5176\u4ed6\u95ee\u9898\u65f6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6b65\u9aa4\uff0c\u6307\u5bfc\u60a8\u5982\u4f55\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u786e\u5b9a\u8fdb\u7a0b ID<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u786e\u5b9a\u60a8\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 ID\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u83b7\u53d6\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\u7684\u5217\u8868\uff1a<\/p>\n<pre>ps aux | grep mysql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u8f93\u51fa\u4e00\u4e2a\u5305\u542b\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\u7684\u5217\u8868\u3002\u627e\u5230\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684\u884c\uff0c\u5e76\u8bb0\u4e0b\u5176\u8fdb\u7a0b ID\uff08PID\uff09\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u4f7f\u7528 kill \u547d\u4ee4\u5220\u9664\u8fdb\u7a0b<\/strong><\/p>\n<p>\u4e00\u65e6\u60a8\u77e5\u9053\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 PID\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 kill \u547d\u4ee4\u5c06\u5176\u5220\u9664\u3002\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5411 PID \u4e3a 1234 \u7684\u8fdb\u7a0b\u53d1\u9001\u7ec8\u6b62\u4fe1\u53f7\uff1a<\/p>\n<pre>kill 1234<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528 -9 \u9009\u9879\u5411\u8fdb\u7a0b\u53d1\u9001 SIGKILL \u4fe1\u53f7\uff0c\u8fd9\u5c06\u5f3a\u5236\u7ec8\u6b62\u8fdb\u7a0b\u3002\u4f46\u662f\uff0c\u8bf7\u8c28\u614e\u4f7f\u7528 -9 \u9009\u9879\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u4f1a\u5bfc\u81f4\u3002<\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u786e\u8ba4\u8fdb\u7a0b\u5df2\u5220\u9664<\/strong><\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u786e\u8ba4\u8fdb\u7a0b\u5df2\u6210\u529f\u5220\u9664\uff1a<\/p>\n<pre>ps aux | grep mysql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u5220\u9664\u6210\u529f\uff0c\u60a8\u5c06\u4e0d\u518d\u770b\u5230\u8fdb\u7a0b\u7684\u5217\u8868\u4e2d\u5305\u542b\u8be5\u8fdb\u7a0b\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u5220\u9664\u6570\u636e\u5e93\u8fdb\u7a0b\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>\u8981\u5220\u9664 mysql \u6570\u636e\u5e93\u8fdb\u7a0b\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u786e\u5b9a\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 id\u3002 2. \u4f7f\u7528 kill \u547d\u4ee4\u5220\u9664\u8be5\u8fdb\u7a0b\uff0c\u4f7f\u7528 pid \u4f5c\u4e3a\u53c2\u6570\u3002 3. \u786e\u8ba4\u8fdb\u7a0b\u5df2\u6210\u529f\u5220\u9664\u3002 \u5982\u4f55\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b \u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b\uff0c\u4f8b\u5982\u5f53\u8fdb\u7a0b\u9047\u5230\u6b7b\u9501\u6216\u5176\u4ed6\u95ee\u9898\u65f6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6b65\u9aa4\uff0c\u6307\u5bfc\u60a8\u5982\u4f55\u5220\u9664 MySQL \u6570\u636e\u5e93\u8fdb\u7a0b\uff1a \u6b65\u9aa4 1\uff1a\u786e\u5b9a\u8fdb\u7a0b ID \u9996\u5148\uff0c\u60a8\u9700\u8981\u786e\u5b9a\u60a8\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 ID\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u83b7\u53d6\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\u7684\u5217\u8868\uff1a ps aux | grep mysql \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u8f93\u51fa\u4e00\u4e2a\u5305\u542b\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u8fdb\u7a0b\u7684\u5217\u8868\u3002\u627e\u5230\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684\u884c\uff0c\u5e76\u8bb0\u4e0b\u5176\u8fdb\u7a0b ID\uff08PID\uff09\u3002 \u6b65\u9aa4 2\uff1a\u4f7f\u7528 kill \u547d\u4ee4\u5220\u9664\u8fdb\u7a0b \u4e00\u65e6\u60a8\u77e5\u9053\u8981\u5220\u9664\u7684\u8fdb\u7a0b\u7684 PID\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 kill \u547d\u4ee4\u5c06\u5176\u5220\u9664\u3002\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5411 PID \u4e3a 1234 \u7684\u8fdb\u7a0b\u53d1\u9001\u7ec8\u6b62\u4fe1\u53f7\uff1a kill 1234 \u767b\u5f55\u540e\u590d\u5236 [&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-6584","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6584","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=6584"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6584\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}