{"id":38097,"date":"2024-11-26T15:37:10","date_gmt":"2024-11-26T07:37:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/38097\/"},"modified":"2024-11-26T15:37:10","modified_gmt":"2024-11-26T07:37:10","slug":"%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3linux%e4%b8%bb%e6%9c%ba%e6%94%b9%e5%90%8d%e5%90%8e%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8mysql","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/38097\/","title":{"rendered":"\u5982\u4f55\u89e3\u51b3Linux\u4e3b\u673a\u6539\u540d\u540e\u65e0\u6cd5\u542f\u52a8MySQL"},"content":{"rendered":"<p>mysql\u65e0\u6cd5\u91cd\u542f\u3001\u65e0\u6cd5\u5173\u95ed\u3001\u65e0\u6cd5\u542f\u52a8\u3001\u65e0\u6cd5\u4f7f\u7528\uff0c\u5982\u679c\u662f\u56e0\u4e3a\u4fee\u6539\u4e86\u4e3b\u673a\u540d\uff0c\u53ef\u4ee5\u8fd9\u6837\u89e3\u51b3\uff1a\u5173\u95ed\u6389\u6240\u6709mysql\u8fdb\u7a0b\uff0c\u7136\u540e\u5728\u542f\u52a8\u4e00\u4e0bmysql\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172761602673150.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u89e3\u51b3Linux\u4e3b\u673a\u6539\u540d\u540e\u65e0\u6cd5\u542f\u52a8MySQL\u63d2\u56fe\" alt=\"\u5982\u4f55\u89e3\u51b3Linux\u4e3b\u673a\u6539\u540d\u540e\u65e0\u6cd5\u542f\u52a8MySQL\u63d2\u56fe\" \/><\/p>\n<p>\u4eca\u5929\u65e0\u4e8b\u770b\u5230\u81ea\u5df1\u7684\u4e3b\u673a\u540d\u4e0d\u5bf9\uff0c\u4e8e\u662f\u6539\u4e86\u4e00\u4e0b\uff0c\u4ee5\u4fbf\u533a\u5206\u670d\u52a1\u5668\uff0c\u7ed3\u679c\u91cd\u542fmysql\u65f6\u51fa\u73b0\u4e0b\u9762\u9519\u8bef\uff1a<\/p>\n<pre>MySQL manager or server PID file could not be found!&nbsp; &nbsp; &nbsp; [FAILED]\nStarting MySQL.Manager of pid-file quit without updating fi[FAILED]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u600e\u4e48\u4f1a\u627e\u4e0d\u5230PID\u5462\uff0c\u770b\u4e0b\u9762\uff1a<\/p>\n<pre>[root@linuxidc.com ~]#&nbsp; ps aux | grep mysql\nmysql&nbsp; &nbsp; 16433&nbsp; 0.0&nbsp; 0.2&nbsp; 36636&nbsp; 5756 ?&nbsp; &nbsp; &nbsp; &nbsp; Sl&nbsp; 15:07&nbsp; 0:00 \/usr\/local\/mysql\/libexec\/mysqld --basedir=\/usr\/local\/mysql --datadir=\/usr\/local\/mysql\/var --user=mysql --log-error=\/usr\/local\/mysql\/var\/hao9goAndSecondWeb.err --pid-file=\/usr\/local\/mysql\/var\/hao9goAndSecondWeb.pid --socket=\/tmp\/mysql.sock --port=3306\nroot&nbsp; &nbsp; 16992&nbsp; 0.0&nbsp; 0.0&nbsp; 4020&nbsp; 704 pts\/0&nbsp; &nbsp; S+&nbsp; 15:11&nbsp; 0:00 grep mysql<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u539f\u6765PID\u8fd8\u662f\u539f\u6765\u4e3b\u673a\u540d.pid\uff0c\u8fd0\u884c:<\/p>\n<pre>kill -9 &lt;mysqlpid&gt; \u7136\u540e service mysql start \u54c8\u54c8\u770b\u5230\u7eff\u8272\u7684OK\u4e86\uff0c\n\n[root@linuxidc ~]# service mysql start\nStarting MySQL.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&nbsp;OK&nbsp; ]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u89e3\u51b3Linux\u4e3b\u673a\u6539\u540d\u540e\u65e0\u6cd5\u542f\u52a8MySQL\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysql\u65e0\u6cd5\u91cd\u542f\u3001\u65e0\u6cd5\u5173\u95ed\u3001\u65e0\u6cd5\u542f\u52a8\u3001\u65e0\u6cd5\u4f7f\u7528\uff0c\u5982\u679c\u662f\u56e0\u4e3a\u4fee\u6539\u4e86\u4e3b\u673a\u540d\uff0c\u53ef\u4ee5\u8fd9\u6837\u89e3\u51b3\uff1a\u5173\u95ed\u6389\u6240\u6709mysql\u8fdb\u7a0b\uff0c\u7136\u540e\u5728\u542f\u52a8\u4e00\u4e0bmysql\u3002 \u4eca\u5929\u65e0\u4e8b\u770b\u5230\u81ea\u5df1\u7684\u4e3b\u673a\u540d\u4e0d\u5bf9\uff0c\u4e8e\u662f\u6539\u4e86\u4e00\u4e0b\uff0c\u4ee5\u4fbf\u533a\u5206\u670d\u52a1\u5668\uff0c\u7ed3\u679c\u91cd\u542fmysql\u65f6\u51fa\u73b0\u4e0b\u9762\u9519\u8bef\uff1a MySQL manager or server PID file could not be found!&nbsp; &nbsp; &nbsp; [FAILED] Starting MySQL.Manager of pid-file quit without updating fi[FAILED] \u767b\u5f55\u540e\u590d\u5236 \u600e\u4e48\u4f1a\u627e\u4e0d\u5230PID\u5462\uff0c\u770b\u4e0b\u9762\uff1a [root@linuxidc.com ~]#&nbsp; ps aux | grep mysql mysql&nbsp; &nbsp; 16433&nbsp; 0.0&nbsp; 0.2&nbsp; 36636&nbsp; 5756 ?&nbsp; &nbsp; &nbsp; &nbsp; Sl&nbsp; 15:07&nbsp; 0:00 \/usr\/local\/mysql\/libexec\/mysqld &#8211;basedir=\/usr\/local\/mysql &#8211;datadir=\/usr\/local\/mysql\/var &#8211;user=mysql &#8211;log-error=\/usr\/local\/mysql\/var\/hao9goAndSecondWeb.err &#8211;pid-file=\/usr\/local\/mysql\/var\/hao9goAndSecondWeb.pid &#8211;socket=\/tmp\/mysql.sock &#8211;port=3306 root&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-38097","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/38097","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=38097"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/38097\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=38097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=38097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=38097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}