{"id":910,"date":"2010-01-22T09:47:54","date_gmt":"2010-01-22T00:47:54","guid":{"rendered":"http:\/\/uda2.com\/blog\/?p=910"},"modified":"2015-02-26T16:30:59","modified_gmt":"2015-02-26T07:30:59","slug":"core-server%e3%81%a7mysql%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91","status":"publish","type":"post","link":"https:\/\/uda2.com\/blog\/core-server%e3%81%a7mysql%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91\/","title":{"rendered":"CORE SERVER\u3067MySQL\u306e\u6587\u5b57\u5316\u3051"},"content":{"rendered":"<p>\u4f5c\u696d\u91cf\u3092\u8a08\u308b\u70ba\u306b\u65e5\u5831\u3092\u66f8\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\uff08PHP\uff0bMySQL\uff09\u3092\u4f5c\u3063\u3066\u3044\u305f\u304c\u3001\u4eca\u56de\u306eXREA\u304b\u3089CORE SERVER\u306e\u5f15\u3063\u8d8a\u3057\u3067\u6587\u5b57\u5316\u3057\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f\u3002<br \/>\nPhpMyAdmin\u304b\u3089\u5165\u529b\u3057\u305f\u6587\u7ae0\u306f\u81ea\u4f5cPHP\u3067\u6587\u5b57\u5316\u3051\u3057\u3001<br \/>\n\u81ea\u4f5cPHP\u304b\u3089\u5165\u529b\u3057\u305f\u6587\u7ae0\u306fPhpMyAdmin\u3067\u6587\u5b57\u5316\u3051\u3057\u3066\u308b\u72b6\u614b\u3060\u3002<br \/>\n\u6700\u521d\u306f\u660e\u3089\u304b\u306b\u53e4\u3044PhpMyAdmin\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u306e\u3067\u602a\u3057\u3044\u3068\u601d\u3063\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u307f\u305f\u304c\u4f55\u3082\u5909\u308f\u3089\u306a\u3044\u3002phpinfo\u3068\u304b\u3082\u898b\u3066\u307f\u305f\u304c\u5927\u4e08\u592b\u3060\u6b8b\u308b\u306fmySQL\u3002telnet\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u6587\u5b57\u30b3\u30fc\u30c9\u304c\u4f55\u306a\u306e\u304b\u8abf\u3079\u3066\u307f\u308b\u4e8b\u306b\u3057\u305f\u3002<\/p>\n<pre><code>&gt; cd \/\r\n&gt; mysql -u \u30e6\u30fc\u30b6\u30fc\u540d -p\r\nmysql&gt; SHOW VARIABLES LIKE 'cha%';\r\n+--------------------------+---------------------------------------------------+\r\n| Variable_name            | Value                                             |\r\n+--------------------------+---------------------------------------------------+\r\n| character_set_client     | latin1                                            |\r\n| character_set_connection | latin1                                            |\r\n| character_set_database   | utf8                                              |\r\n| character_set_filesystem | binary                                            |\r\n| character_set_results    | latin1                                            |\r\n| character_set_server     | utf8                                              |\r\n| character_set_system     | utf8                                              |\r\n| character_sets_dir       | \/usr\/local\/mysql-src-5.1.22\/share\/mysql\/charsets\/ |\r\n+--------------------------+---------------------------------------------------+<\/code><\/pre>\n<p>\u3068latin1\uff08\u30e9\u30c6\u30f3\uff09\u304c\u6df7\u3058\u3063\u3066\u3044\u305f\u3002\u3082\u3061\u308d\u3093\u7ba1\u7406\u753b\u9762\u304b\u3089mySQL\u3092\u4f5c\u6210\u3059\u308b\u6642\u306bUNICODE\u3067\u4f5c\u6210\u3057\u3066\u308b\u3002<br \/>\n\u4e00\u4f53\u4f55\u3092\u8003\u3048\u3066latin1\u306e\u307e\u307e\u653e\u7f6e\u3057\u3066\u308b\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u304c\u3001\u5171\u7528\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3053\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u4e8b\u306f\u51fa\u6765\u306a\u3044\u3002<br \/>\n\u691c\u7d22\u3059\u308b\u3068set names utf8\u4ee5\u5916\u306e\u6587\u5b57\u5316\u3051\u5bfe\u7b56\u3063\u3066\u306e\u3092\u898b\u3064\u3051\u305f\u3002<br \/>\nCORE SERVER\u306fPHP5.2.5\u306a\u306e\u3067<br \/>\nmysql_set_charset(&#8216;utf8&#8217;);<br \/>\n\u3092\u8ffd\u8a18\u3057\u305f\u3002\u3059\u308b\u3068\u30d0\u30c3\u30c1\u30ea\u76f4\u3063\u305f\u3002<br \/>\n\u305f\u3060\u3001\u6bce\u56deCORE SERVER\u306e\u70ba\u3060\u3051\u306b\u30b3\u30ec\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308b\u3057\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306a\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6642\u306b\u3084\u3084\u3053\u3057\u3044\u4e8b\u306b\u306a\u308a\u305d\u3046\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u696d\u91cf\u3092\u8a08\u308b\u70ba\u306b\u65e5\u5831\u3092\u66f8\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\uff08PHP\uff0bMySQL\uff09\u3092\u4f5c\u3063\u3066\u3044\u305f\u304c\u3001\u4eca\u56de\u306eXREA\u304b\u3089CORE SERVER\u306e\u5f15\u3063\u8d8a\u3057\u3067\u6587\u5b57\u5316\u3057\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f\u3002 PhpMyAdmin\u304b\u3089\u5165\u529b\u3057\u305f\u6587\u7ae0\u306f\u81ea\u4f5cPHP\u3067\u6587\u5b57\u5316\u3051\u3057\u3001 \u81ea<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206],"tags":[217,76,179],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-diary","tag-core-server","tag-mysql","tag-179"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/comments?post=910"}],"version-history":[{"count":7,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":1769,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/posts\/910\/revisions\/1769"}],"wp:attachment":[{"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/media?parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/categories?post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uda2.com\/blog\/wp-json\/wp\/v2\/tags?post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}