{"id":370,"date":"2007-01-14T19:04:17","date_gmt":"2007-01-14T10:04:17","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/20070114190417"},"modified":"2020-05-24T23:23:09","modified_gmt":"2020-05-24T14:23:09","slug":"mysql%e3%81%aeroot%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/mysql%e3%81%aeroot%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e8%a8%ad%e5%ae%9a\/","title":{"rendered":"MySQL\u306eRoot\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a"},"content":{"rendered":"<p>\u4ee5\u4e0b\u3092\u3059\u308c\u3070\u304a\uff4b<\/p>\n<pre lang=\"\">% mysql -u root mysql\r\nmysql> use mysql;\r\nmysql> UPDATE user SET Password=PASSWORD('new_password') WHERE user='root';\r\nmysql> FLUSH PRIVILEGES;<\/pre>\n<p>\u306a\u304a\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u518d\u8a2d\u5b9a\u3067\u304d\u308b\u3002<\/p>\n<pre lang=\"\"># \/usr\/bin\/safe_mysqld --skip-grant-tables <\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u8d77\u52d5\u3059\u308b\u3068\u3001\u8a8d\u8a3c\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308b\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre lang=\"\">#  mysql -u root mysql\r\n\r\nmysql> UPDATE user SET password=PASSWORD('root_password') WHERE user='root';\r\nmysql> FLUSH PRIVILEGES;<\/pre>\n<p>\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u307e\u305f\u901a\u5e38\u901a\u308a\u8d77\u52d5\u3057\u306a\u304a\u305b\u3070\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u3092\u3059\u308c\u3070\u304a\uff4b % mysql -u root mysql mysql> use mysql; mysql> UPDATE user SET Password=PASSWORD(&#8216;new_password&#8217;) WHER [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[11],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-development","tag-tool"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":1,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":2273,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/370\/revisions\/2273"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}