{"id":906,"date":"2011-06-28T00:58:59","date_gmt":"2011-06-27T15:58:59","guid":{"rendered":"http:\/\/www.prime-architect.co.jp\/myblog\/?p=906"},"modified":"2013-11-17T01:00:39","modified_gmt":"2013-11-16T16:00:39","slug":"%e3%81%95%e3%81%8f%e3%82%89vps%e3%81%a7%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%80%e3%81%9d%e3%81%ae6%e3%80%80mysql%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.prime-architect.co.jp\/myblog\/blog-906","title":{"rendered":"\u3055\u304f\u3089VPS\u3067\u74b0\u5883\u69cb\u7bc9\u3000\u305d\u306e6\u3000mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u524d\u56de\u306b\u3064\u3065\u3044\u3066\u3001\u4eca\u56de\u306f<br \/>\nmysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u30e6\u30fc\u30b6\u306froot\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>mysql\u306b\u3064\u3044\u3066\u3082yum\u3067\u30b5\u30af\u3063\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u3053\u3053\u3067\u3001CentOS 5.6\u306e\u5834\u5408\u306f\u3001mysql\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304cmysql-server-5.1.52\u306b\u306a\u308b\u3002<br \/>\nCentOS 5.5\u306e\u5834\u5408\u306f5.0.77\u306b\u306a\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u6700\u521d\u306bCentOS 5.6\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3053\u306f5.1.52\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3059\u308b\u3002<\/p>\n<p><font color=\"#FF0000\">yum -y install mysql-server<\/font><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d<br \/>\n<font color=\"#FF0000\">rpm -qa mysql-server<\/font><br \/>\nmysql-server-5.1.52-jason.1<\/p>\n<p>\u3064\u3065\u304d\u307e\u3057\u3066\u3001conf\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304a\u304d\u307e\u3057\u3057\u3087\u3046\u3002<br \/>\n<font color=\"#FF0000\">cd \/etc<br \/>\ncp my.cnf my.cnf_bk<\/font><\/p>\n<p>vi\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u7de8\u96c6<br \/>\n8\u884c\u76ee\u304b\u3089\u4ee5\u4e0b\uff13\u884c\u3092\u8ffd\u52a0<\/p>\n<div style=\"BACKGROUND-COLOR: #ffffcc\">\n# character-set<br \/>\ndefault-character-set=utf8<br \/>\nkip-character-set-client-handshake\n<\/div>\n<p>\u7d9a\u3044\u3066\u6700\u7d42\u884c\u306e\u5f8c\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<div style=\"BACKGROUND-COLOR: #ffffcc\">\n [client]<br \/>\ndefault-character-set=utf8<\/p>\n<p>[mysql]<br \/>\ndefault-character-set=utf8<\/p>\n<p>[mysqldump]<br \/>\ndefault-character-set=utf8<\/p>\n<\/div>\n<p>\u3053\u308c\u3067cnf\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u306e\u3067<br \/>\nmySQL\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<font color=\"#FF0000\">service mysqld start<\/font><\/p>\n<p>\u4eca\u5ea6\u306fmysql\u306e\u30e6\u30fc\u30b6root\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<font color=\"#FF0000\">mysqladmin -u root password &#8216;XXXX&#8217; <\/font><br \/>\nXXXX\u306e\u3068\u3053\u308d\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3064\u3065\u3044\u3066\u3001mysql\u306broot\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><font color=\"#FF0000\">mysql -u root -p <\/font><br \/>\n\u3053\u3053\u3067\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div style=\"BACKGROUND-COLOR: #ffffcc\">\nWelcome to the MySQL monitor.  Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 17953<br \/>\nServer version: 5.1.52 MySQL Community Server (GPL) by Utter Ramblings<\/p>\n<p>Copyright (c) 2000, 2010, Oracle and\/or its affiliates. All rights reserved.<br \/>\nThis software comes with ABSOLUTELY NO WARRANTY. This is free software,<br \/>\nand you are welcome to modify and redistribute it under the GPL v2 license<\/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>\n<\/p><\/div>\n<p>\u3053\u308c\u3067\u3001mysql\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306b\u3064\u3065\u3044\u3066\u3001\u4eca\u56de\u306f mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002 \u3061\u306a\u307f\u306b\u30e6\u30fc\u30b6\u306froot\u3067\u884c\u3044\u307e\u3059\u3002 mysql\u306b\u3064\u3044\u3066\u3082yum\u3067\u30b5\u30af\u3063\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u3053\u3053\u3067\u3001CentOS 5.6\u306e\u5834\u5408\u306f\u3001mysql\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304cmysq &hellip; <a href=\"https:\/\/www.prime-architect.co.jp\/myblog\/blog-906\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3055\u304f\u3089VPS\u3067\u74b0\u5883\u69cb\u7bc9\u3000\u305d\u306e6\u3000mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[5],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/906"}],"collection":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/comments?post=906"}],"version-history":[{"count":2,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/906\/revisions"}],"predecessor-version":[{"id":908,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/906\/revisions\/908"}],"wp:attachment":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/media?parent=906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/categories?post=906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/tags?post=906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}