{"id":1020,"date":"2011-09-27T21:03:56","date_gmt":"2011-09-27T12:03:56","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=1020"},"modified":"2011-09-28T09:26:21","modified_gmt":"2011-09-28T00:26:21","slug":"mysql-root%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e5%bf%98%e3%82%8c%e3%81%9f%e6%99%82","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2011\/09\/27\/mysql-root%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e5%bf%98%e3%82%8c%e3%81%9f%e6%99%82\/","title":{"rendered":"MySQL root\u30d1\u30b9\u30ef\u30fc\u30c9\u5fd8\u308c\u305f\u6642"},"content":{"rendered":"<p>\u3044\u3084\u30fc\u5fd8\u308c\u3093\u306a\uff01\u3068\u3044\u3046\u7a81\u3063\u8fbc\u307f\u306f\u3042\u308d\u3046\u304c\u3001\u500b\u4eba\u30b5\u30fc\u30d0\u3067\u8a2d\u5b9a\u3057\u305fMySQL\u306eroot\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u308b\u306a\u3093\u3066\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u8a71\u3002<\/p>\n<p>CentOS\u3067\u306e\u8a2d\u5b9a\u4f8b\u3060\u304c\u3001\/etc\/my.cnf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u518d\u8d77\u52d5\u3059\u308b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u8a2d\u5b9a\u304c\u53ef\u80fd\u3068\u306a\u308b\u3002<\/p>\n<p>\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u306e\u306b\u5148\u982d\u306b[mysqld]\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u3042\u308b\u306f\u305a\u3001\u305d\u306e\u76f4\u4e0b\u3042\u305f\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306bskip-grant-tables\u3092\u5165\u308c\u3066\u3001mysql\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>[mysqld]<br \/>\n#\u3053\u306e\u884c\u3092\u5165\u308c\u308b<br \/>\nskip-grant-tables<\/p>\n<p>\u305d\u306e\u5f8c\u306fmysql\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u306e\u3067<\/p>\n<p>[shell]<br \/>\n[root@rutake]# mysql -u root mysql<br \/>\nReading table information for completion of table and column names<br \/>\nYou can turn off this feature to get a quicker startup with -A<\/p>\n<p>Welcome to the MySQL monitor.  Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 2 to server version: 4.1.22<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the buffer.<\/p>\n<p>mysql> UPDATE user SET Password=PASSWORD(&#8216;tmp&#8217;) WHERE User=&#8217;root&#8217;;<br \/>\nQuery OK, 1 row affected (0.03 sec)<br \/>\nRows matched: 1  Changed: 1  Warnings: 0<\/p>\n<p>mysql> exit<br \/>\nBye<br \/>\n[\/shell]<\/p>\n<p>\u3042\u3068\u306f\u5148\u307b\u3069\u8ffd\u52a0\u3057\u305f\u8a18\u8ff0\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u518d\u8d77\u52d5\u3059\u308c\u3070OK!<br \/>\nmysqld\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3064\u3051\u3066\u3082\u3044\u3044\u3089\u3057\u3044\u3051\u3069\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3044\u3058\u308b\u307b\u3046\u304c\u7c21\u5358\u3060\u3068\u601d\u3063\u3066\u7d39\u4ecb\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3084\u30fc\u5fd8\u308c\u3093\u306a\uff01\u3068\u3044\u3046\u7a81\u3063\u8fbc\u307f\u306f\u3042\u308d\u3046\u304c\u3001\u500b\u4eba\u30b5\u30fc\u30d0\u3067\u8a2d\u5b9a\u3057\u305fMySQL\u306eroo &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2011\/09\/27\/mysql-root%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e5%bf%98%e3%82%8c%e3%81%9f%e6%99%82\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,147],"tags":[423,92],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/1020"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=1020"}],"version-history":[{"count":4,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/1020\/revisions"}],"predecessor-version":[{"id":1031,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/1020\/revisions\/1031"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=1020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=1020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}