{"id":9147,"date":"2025-05-10T10:48:36","date_gmt":"2025-05-10T01:48:36","guid":{"rendered":"https:\/\/jg7sfr.mydns.jp\/?p=9147"},"modified":"2025-05-10T11:37:23","modified_gmt":"2025-05-10T02:37:23","slug":"mysql%e3%81%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/jg7sfr.mydns.jp\/?p=9147","title":{"rendered":"mysql\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"># mysql -u root -p<br>Enter password:<br>ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#8217;localhost&#8217; (using password: YES)<br>\u5fc3\u5f53\u305f\u308a\u3092\u5165\u529b\u3057\u3066\u3082\u89e3\u6c7a\u3067\u304d\u305a\u3002<br><br>\u305d\u3093\u306a\u6642\u306f\u30bb\u30fc\u30d5\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u518d\u8a2d\u5b9a\u3092\u884c\u3046\u3002<br># service mysqld stop<br>mysqld does not exist in \/etc\/rc.d or the local startup<br>directories (\/usr\/local\/etc\/rc.d), or is not executable<br># mysqld_safe &#8211;skip-grant-tables &amp;<br>[1] 3342<br><br># mysql -u root<br>Welcome to the MySQL monitor. Commands end with ; or \\g.<br>Your MySQL connection id is 20<br>Server version: 8.4.3 Source distribution<br>Copyright (c) 2000, 2024, Oracle and\/or its affiliates.<br>Oracle is a registered trademark of Oracle Corporation and\/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.<br>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<br><br>root@localhost [(none)]> use mysql;<br>Database changed<br>root@localhost [mysql]> set password for root@localhost = &#8216;********&#8217;;<br>Query OK, 0 rows affected (0.05 sec)<br>root@localhost [mysql]> flush privileges;<br>Query OK, 0 rows affected (0.01 sec)<br>root@localhost [mysql]> quit<br><br># service mysqld stop<br>mysqld does not exist in \/etc\/rc.d or the local startup<br>directories (\/usr\/local\/etc\/rc.d), or is not executable<br># service mysqld start<br>mysqld does not exist in \/etc\/rc.d or the local startup<br>directories (\/usr\/local\/etc\/rc.d), or is not executable<br># service mysql-server status<br># mysql is running as pid 3276.<br>\u8d77\u52d5\u306fservice mysql-server start\u3067\u3082\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u306d\u3002\u8d77\u52d5\u3068\u505c\u6b62\u306f\u3002<br>\u3068\u308a\u3042\u3048\u305a\u3053\u3053\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p># mysql -u root -pEnter password:ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#8217;localhos&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[4],"tags":[929,563,930,928],"class_list":["post-9147","post","type-post","status-publish","format-image","hentry","category-bsd","tag-flush-privileges","tag-mysql","tag-set-password-for-root","tag-use-mysql","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/9147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9147"}],"version-history":[{"count":3,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/9147\/revisions"}],"predecessor-version":[{"id":9151,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/9147\/revisions\/9151"}],"wp:attachment":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}