{"id":541,"date":"2016-01-04T12:31:49","date_gmt":"2016-01-04T03:31:49","guid":{"rendered":"http:\/\/wp.ultimai.org\/wp\/?p=541"},"modified":"2016-01-24T19:51:11","modified_gmt":"2016-01-24T10:51:11","slug":"mysql-root%e3%81%ae%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%82%92%e5%bf%98%e3%82%8c%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3%e3%81%9f%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/wp.ultimai.org\/?p=541","title":{"rendered":"MySQL root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p><meta name=\"ROBOTS\" content=\"NOINDEX\"><\/p>\n<p>Dos\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4<\/p>\n<p>MySQL\u306eroot\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u4ee5\u4e0b\u306e<br \/>\n\u5bfe\u51e6\u3092\u3059\u308b\u3053\u3068\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>(1)MySQL\u30b5\u30fc\u30d3\u30b9\u306e\u505c\u6b62<br \/>\n\u25cf\uff37\uff49\uff4e\uff44\uff4f\uff57\uff53<br \/>\n\u300c\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u300d\u2192\u300c\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u300d\u2192\u300c\u30b5\u30fc\u30d3\u30b9\u300d\u306e\u753b\u9762\u3092\u8d77\u52d5\u3057\u3066\u3001<br \/>\n\u300cMySQL\u300d\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u25cfLINUX<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c7\u30fc\u30e2\u30f3\u3092\u505c\u6b62\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n#\/etc\/init.d\/mysql stop<\/p>\n<p>(2)\u30d1\u30b9\u30ef\u30fc\u30c9\u7121\u3057\u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308b\u3088\u3046\u306bMySQL\u3092\u8d77\u52d5<br \/>\n\u25cf\uff37\uff49\uff4e\uff44\uff4f\uff57\uff53<br \/>\n\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nmysqld-nt &#8211;skip-grant-tables<br \/>\n\u203b\u5fdc\u7b54\u5f85\u3061\u3067\u6b62\u307e\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u25cfLINUX<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001MySQL\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n#mysqld_safe &#8211;skip-grant-tables<\/p>\n<p>(3)MySQL\u306b\u63a5\u7d9a\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4<br \/>\n\u25cf\uff37\uff49\uff4e\uff44\uff4f\uff57\uff53\u3001LINUX\u5171\u901a<br \/>\n\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u3082\u30461\u3064\u8d77\u52d5\u3055\u305b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067MySQL\u306b\u63a5\u7d9a\u3001<br \/>\n\u53ca\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4ee5\u4e0b\u306e\u753b\u9762\u306f\uff37\uff49\uff4e\uff44\uff4f\uff57\uff53\u306e\u7269\u3067\u3059\u304c\u3001Linux\u306e\u5834\u5408\u3082\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3067\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u4e0b\u8a18\u3067\u306f\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u300cpass\u300d\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nC:\\Users\\sasuke>mysql -u root mysql<br \/>\nWelcome to the MySQL monitor. Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 1<br \/>\nServer version: 5.0.86-community-nt MySQL Community Edition (GPL)<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<\/p>\n<p>mysql>update user set password=PASSWORD(&#8216;pass&#8217;) where user=&#8217;root&#8217; and host=&#8217;localhost&#8217;;<br \/>\nQuery OK, 1 row affected (0.00 sec)<br \/>\nRows matched: 1 Changed: 1 Warnings: 0<\/p>\n<p>mysql>FLUSH PRIVILEGES;<\/p>\n<p>(4)\u30d1\u30bd\u30b3\u30f3\u306e\u518d\u8d77\u52d5<br \/>\n\u30d1\u30bd\u30b3\u30f3\u306e\u518d\u8d77\u52d5\u3001\u53c8\u306fmysql\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u505c\u6b62\u5f8c\u306bMySQL\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4e0a\u8a18\u3067\u8a2d\u5b9a\u3057\u305f\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003<br \/>\nhttp:\/\/sasuke.main.jp\/mysqlrootpass.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dos\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4 MySQL\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"chat","meta":{"footnotes":""},"categories":[14,4],"tags":[],"class_list":["post-541","post","type-post","status-publish","format-chat","hentry","category-database","category-mysql","post_format-post-format-chat"],"_links":{"self":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=541"}],"version-history":[{"count":0,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions"}],"wp:attachment":[{"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wp.ultimai.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}