{"id":300,"date":"2015-05-11T15:21:08","date_gmt":"2015-05-11T06:21:08","guid":{"rendered":"http:\/\/tech.eshima.info\/?p=300"},"modified":"2015-05-11T15:21:08","modified_gmt":"2015-05-11T06:21:08","slug":"cakephp%e3%81%a7%e3%81%aemysql%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/tech.eshima.info\/?p=300","title":{"rendered":"CakePHP\u3067\u306eMySQL\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u8272\u3005\u3068\u74b0\u5883\u3092\u5909\u3048\u305f\u5f8c\u3067<br \/>\nCakePHP2\u3067\u4f5c\u3063\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068<\/p>\n<pre>\r\nMissing Database Connection\r\n\r\nError: A Database connection using \"Mysql\" was missing or unable to connect.\t\r\nThe database server returned this error: SQLSTATE[HY000] [2002] Connection refused\r\n\r\nNotice: If you want to customize this error message, create app\/View\/Errors\/missing_connection.ctp\r\n<\/pre>\n<p>\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\n\u524d\u306f\u52d5\u3044\u3066\u305f\u306e\u306b\u3002<\/p>\n<p>\u3050\u3050\u308b\u3068\u3001PDO\u7cfb\u304c\u5165\u3063\u3066\u306a\u3044\uff0f\u8a2d\u5b9a\u304c\u4e0a\u624b\u304f\u3044\u3063\u3066\u3044\u306a\u3044\u6642\u306b<br \/>\n\u3053\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3068\u306e\u3053\u3068\u3067\u3001<br \/>\n\u305d\u306e\u8fba\u3092\u305f\u304f\u3055\u3093\u3044\u3058\u3063\u3066\u307f\u3066\u3082\u5909\u308f\u3089\u305a\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u3001databese.php\u306e<\/p>\n<pre>\r\n'host' => '127.0.0.1'\r\n<\/pre>\n<p>\u3068\u3057\u3066\u3044\u305f\u306e\u3092<\/p>\n<pre>\r\n'host' => 'localhost'\r\n<\/pre>\n<p>\u306b\u4fee\u6b63\u3059\u308b\u3053\u3068\u3067\u52d5\u3044\u305f\u3002<\/p>\n<p>mysql\u306e\u5165\u308c\u66ff\u3048\u3067\u4e0a\u624b\u304f\u52d5\u304b\u306a\u304f\u306a\u308a<br \/>\n\u6539\u3081\u3066\u5165\u308c\u306a\u304a\u3057\u305f\u3053\u3068\u304c\u539f\u56e0\u304b\u3068\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8272\u3005\u3068\u74b0\u5883\u3092\u5909\u3048\u305f\u5f8c\u3067 CakePHP2\u3067\u4f5c\u3063\u3066\u3044 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-cakephp"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300"}],"version-history":[{"count":1,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions\/301"}],"wp:attachment":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}