{"id":18,"date":"2020-07-26T01:00:50","date_gmt":"2020-07-25T16:00:50","guid":{"rendered":"https:\/\/server.nkyshr.com\/?p=18"},"modified":"2022-11-21T02:15:46","modified_gmt":"2022-11-20T17:15:46","slug":"error-2002","status":"publish","type":"post","link":"https:\/\/thewyatt.co\/?p=18","title":{"rendered":"ERROR 2002"},"content":{"rendered":"<p>STAY TOKYO\u9023\u4f11\u306b\u3075\u3068\u30b5\u30a4\u30c8\u3092\u958b\u3044\u3066\u307f\u305f\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30e9\u30fc\u767a\u751f\u3002<br>ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216;\/tmp\/mysql.sock&#8217; (2)<br>\u306a\u306b\u3084\u3089\u3001mysql\u306b\u63a5\u7d9a\u51fa\u6765\u3066\u3044\u306a\u3044\u6a21\u69d8\u3002\u3042\u308c\u308c\uff1f\u3000\u4f55\u304b\u3057\u305f\u3063\u3051\uff1f\u3000\u3068\u8003\u3048\u306a\u304c\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7acb\u3061\u4e0a\u3052SSH\u3002\u3046\u30fc\u30fc\u3093\u3001\u304a\u304b\u3057\u3044\u3001\u306a\u305c\u3060\uff1f\uff1f\uff1f\u3000\u30b0\u30b0\u3063\u3066\u3044\u304f\u3064\u304b\u306e\u30b5\u30a4\u30c8\u3067\u540c\u3058\u30a8\u30e9\u30fc\u304c\u30d2\u30c3\u30c8\u3057\u3001mysql.sock\u304c\u306a\u3093\u3089\u304b\u306e\u539f\u56e0\u306b\u3088\u308a\u6d88\u3048\u308b\u3053\u3068\u304c\u3042\u308b\u3068\u3044\u3046\u3002 sudo touch \/tmp\/mysql.sock \u3067\u7a7a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3084\u308c\u3070\u3088\u3044\u3000\u3068\u89e3\u6c7a\u7b56\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u3002\u306a\u308b\u307b\u3069\u3001\u78ba\u304b\u306b\/tmp \u306b\u30bd\u30b1\u30c3\u30c8\u306f\u898b\u5f53\u305f\u3089\u306a\u3044\u306d\u3047\u3002\u305d\u306e\u307e\u307e\u9d5c\u5451\u307f\u306b\u53e9\u3044\u3066\u307f\u308b\u3068 Can&#8217;t connect to local MySQL server through socket &#8216;\/tmp\/mysql.sock'(38)\u30002\u3060\u3063\u305f\u306e\u304c38\u306b\u5909\u308f\u3063\u305f\uff01\u3000\u3042\u308c\u308c\uff1f\uff1f\u3000<\/p><p>mysql.server restart \u3068\u53e9\u304f\u3082 &#8230; ERROR! The server quit without updating PID file (\/usr\/local\/var\/mysql\/xxxxx.local.pid). \u3068\u5e30\u3063\u3066\u304f\u308b\u3002\u518d\u5ea6\u30b0\u30b0\u3063\u3066\u307f\u308b\u3068 PID file\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u554f\u984c\u3067\u3001.err\u30d5\u30a1\u30a4\u30eb\u3092 _mysql:_mysql&nbsp; \u306b\u3057\u3066\u76f4\u3063\u305f\uff01\u3000\u3068\u66f8\u3044\u3066\u3044\u308b\u4eba\u304c\u3044\u308b\u3002<\/p><p>sudo chown -R _mysql:_mysql \/usr\/local\/var\/mysql \u3067\u3082\u72b6\u6cc1\u5909\u308f\u3089\u305a\u3002\u3053\u3053\u3067\u6c17\u304c\u3064\u3044\u305f\u3002\u305d\u3046\u3044\u3048\u3070\u6628\u65e5\u518d\u8d77\u52d5\u3057\u305f\u3093\u3060\u3063\u305f\u308f\uff01\u3000\u305d\u3082\u305d\u3082mysql\u304c\u52d5\u3044\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u306f\uff1f\u3000\u3068\u3002mysql\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u306e\u3060\u304b\u3089\u7e6b\u304c\u308b\u308f\u3051\u306a\u3044\u3088\u306a\u3002\u3068\u3053\u308d\u304c\u3001mysql.server start \u3092\u7e70\u308a\u8fd4\u3057\u3066\u3082\u4e00\u5411\u306bmysql\u3092\u8d77\u52d5\u51fa\u6765\u306a\u3044\u3002\u56f0\u3063\u305f\u3002mysql\u3092\u518d\u5ea6\u5165\u308c\u76f4\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3002\u3048\u30fc\u30fc\u30fc\uff1f\u3000\u305d\u3093\u306a\u76f4\u3057\u65b9\u3057\u304b\u7121\u3044\u306e\uff1f\uff1f\uff1f\u3000\u305d\u3053\u3067\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5143\u306b\u623b\u3057\u3001tail -f \u30a8\u30e9\u30fc\u30d5\u30a1\u30a4\u30eb\u3067\u72b6\u6cc1\u78ba\u8a8d\u30022020-07-25T14:39:59.869841Z 0 [ERROR] [MY-000067] [Server] unknown variable &#8216;validate_password_policy=LOW&#8217;.\u3000\u3042\uff01\u3000\u601d\u3044\u51fa\u3057\u305f\uff01\u3000\u3053\u306e\u9593\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u554f\u984c\u3067 my.cnf \u306b\u66f8\u3044\u305f\u308f\u3002\u4f55\u51e6\u306b\u3042\u3063\u305f\u3063\u3051\uff1f\u3000\/usr\/local\/etc\/my.cnf\u3000\u3092\u7de8\u96c6\u3057\u3066 <br><\/p><p>$ mysql.server start<br>Starting MySQL<br>.. SUCCESS!&nbsp;<\/p><p>\u3084\u3063\u305f\uff01\u3000\u306a\u304a\u3063\u305f\uff01<\/p><p>\u3044\u3084\u3001\u76f4\u3063\u305f\u3093\u3058\u3083\u306a\u304f\u3063\u3066\u3001\u3001\u3001\u3001\u3001\u3001\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u3092\u4e00\u6642\u7684\u306b\u5909\u66f4\u3057\u305f\u3053\u3068\u3092\u5fd8\u308c\u3066\u3044\u305f\u304c\u305f\u3081\u306b\u8d77\u52d5\u3067\u304d\u305a\u3001\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306b\u8981\u6c42\u3092\u901a\u3057\u3066\u30a8\u30e9\u30fc\u304c\u5410\u304d\u51fa\u3055\u308c\u3001\u4f59\u8a08\u306asudo\u3092\u6253\u3063\u305f\u304c\u305f\u3081\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u554f\u984c\u304c\u8d77\u304d\u305f\u306e\u3067\u3057\u305f\u3002\u3061\u3083\u3093\u3068\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u30b0\u30b0\u308a\u307e\u3057\u3087\u3046\u3002\u304a\u305d\u307e\u3064\u3002<\/p><p><br><br><\/p>","protected":false},"excerpt":{"rendered":"<p>STAY TOKYO\u9023\u4f11\u306b\u3075\u3068\u30b5\u30a4\u30c8\u3092\u958b\u3044\u3066\u307f\u305f\u3089\u30c7\u30fc\u30bf\u30d9\u30fc&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2818,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8"],"_links":{"self":[{"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thewyatt.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":1,"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":2820,"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/2820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thewyatt.co\/index.php?rest_route=\/wp\/v2\/media\/2818"}],"wp:attachment":[{"href":"https:\/\/thewyatt.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thewyatt.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thewyatt.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}