{"id":141,"date":"2015-02-03T15:40:38","date_gmt":"2015-02-03T06:40:38","guid":{"rendered":"https:\/\/www.crestboz.co.jp\/techblog\/?p=141"},"modified":"2016-09-17T17:10:19","modified_gmt":"2016-09-17T08:10:19","slug":"mysql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/","title":{"rendered":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"<p>Python+MySQL\u306e\u7d44\u307f\u5408\u308f\u305b\u3067CGI\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001MySQL\u3068Python\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002MySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306futf8\u3068\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>mysql-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002MySQL\u306eroot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/li>\n<li>\/etc\/mysql\/my.cnf\u3092\u5909\u66f4\u3057\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3002\n<pre class=\"striped:false highlight:0 nums:false lang:sh decode:false \" >\r\n[client]\r\ndefault-character-set=utf8\r\n[mysqld]\r\nskip-character-set-client-handshake\r\ncharacter-set-server = utf8\r\ncollation-server = utf8_general_ci\r\ninit-connect = SET NAMES utf8\r\n<\/pre>\n<\/li>\n<li>Python\u3068MySQL\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u95a2\u9023\u306epython-mysqldb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002Python\u3067\u3001import MySQLdb\u304c\u5b9f\u884c\u3067\u304d\u308c\u3070\u6e96\u5099\u5b8c\u4e86\u3067\u3059\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Python+MySQL\u306e\u7d44\u307f\u5408\u308f\u305b\u3067CGI\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001MySQL\u3068Python\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002MySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306futf8\u3068\u3057\u307e\u3059\u3002 mysql-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-mysql","category-python","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"Python+MySQL\u306e\u7d44\u307f\u5408\u308f\u305b\u3067CGI\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001MySQL\u3068Python\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002MySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306futf8\u3068\u3057\u307e\u3059\u3002 mysql-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/crestboz\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-03T06:40:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-17T08:10:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@crestboz\" \/>\n<meta name=\"twitter:site\" content=\"@crestboz\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\",\"datePublished\":\"2015-02-03T06:40:38+00:00\",\"dateModified\":\"2016-09-17T08:10:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\"},\"wordCount\":21,\"publisher\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\"},\"articleSection\":[\"MySQL\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\",\"name\":\"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#website\"},\"datePublished\":\"2015-02-03T06:40:38+00:00\",\"dateModified\":\"2016-09-17T08:10:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/www.crestboz.co.jp\/techblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#website\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/\",\"name\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\",\"description\":\"IT\u95a2\u9023\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u306b\u95a2\u3057\u3066\u8abf\u67fb\u3057\u305f\u3053\u3068\u306a\u3069\u3092\u516c\u958b\u3059\u308b\u30d6\u30ed\u30b0\u3067\u3059\",\"publisher\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.crestboz.co.jp\/techblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\",\"name\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png\",\"contentUrl\":\"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png\",\"width\":387,\"height\":387,\"caption\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e\"},\"image\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/crestboz\",\"https:\/\/x.com\/crestboz\"]},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/","og_locale":"ja_JP","og_type":"article","og_title":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","og_description":"Python+MySQL\u306e\u7d44\u307f\u5408\u308f\u305b\u3067CGI\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001MySQL\u3068Python\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002MySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306futf8\u3068\u3057\u307e\u3059\u3002 mysql-server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3 [&hellip;]","og_url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/","og_site_name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/crestboz","article_published_time":"2015-02-03T06:40:38+00:00","article_modified_time":"2016-09-17T08:10:19+00:00","twitter_card":"summary_large_image","twitter_creator":"@crestboz","twitter_site":"@crestboz","twitter_misc":{"\u57f7\u7b46\u8005":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#article","isPartOf":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/"},"author":{"name":"","@id":""},"headline":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b","datePublished":"2015-02-03T06:40:38+00:00","dateModified":"2016-09-17T08:10:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/"},"wordCount":21,"publisher":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization"},"articleSection":["MySQL","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/","url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/","name":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#website"},"datePublished":"2015-02-03T06:40:38+00:00","dateModified":"2016-09-17T08:10:19+00:00","breadcrumb":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/141\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/www.crestboz.co.jp\/techblog\/"},{"@type":"ListItem","position":2,"name":"MySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"}]},{"@type":"WebSite","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#website","url":"https:\/\/www.crestboz.co.jp\/techblog\/","name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","description":"IT\u95a2\u9023\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u306b\u95a2\u3057\u3066\u8abf\u67fb\u3057\u305f\u3053\u3068\u306a\u3069\u3092\u516c\u958b\u3059\u308b\u30d6\u30ed\u30b0\u3067\u3059","publisher":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.crestboz.co.jp\/techblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization","name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e","url":"https:\/\/www.crestboz.co.jp\/techblog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/","url":"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png","contentUrl":"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png","width":387,"height":387,"caption":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e"},"image":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/crestboz","https:\/\/x.com\/crestboz"]},{"@type":"Person","@id":"","url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}