{"id":10005,"date":"2021-05-23T15:22:35","date_gmt":"2021-05-23T06:22:35","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10005"},"modified":"2021-05-23T15:23:20","modified_gmt":"2021-05-23T06:23:20","slug":"%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%81%aemamp%e7%92%b0%e5%a2%83%e3%81%a7%e3%81%aelaravel%e3%81%aemigrate%e6%99%82mysql%e6%8e%a5%e7%b6%9a%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10005","title":{"rendered":"\u30ed\u30fc\u30ab\u30eb\u306eMAMP\u74b0\u5883\u3067\u306elaravel\u306emigrate\u6642MySQL\u63a5\u7d9a\u30a8\u30e9\u30fc\u306b\u5bfe\u51e6"},"content":{"rendered":"\n<p>MAMP\u74b0\u5883\u3067\u3001Laravel\u3067php artisan migrate\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f<\/p>\n\n\n\n<p>No such file or directory (SQL: select * from information_schema.tables where table_schema = \u25cb\u25cb\u25cb and table_name = migrations and table_type = &#8216;BASE TABLE&#8217;)<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u3092.env\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u8a2d\u5b9a\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\/config\/database.php\u306bsocket\u306e\u8ffd\u52a0\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>MAMP\u3067\u306f\u3001\u30bd\u30b1\u30c3\u30c8\u304c\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><th>Socket<\/th><td><code>\/Applications\/MAMP\/tmp\/mysql\/mysql.sock<\/code><\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u3053\u308c\u3092\u3001\/config\/database.php\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'mysql' => [\n            \u301c\u7701\u7565\u301c\n            'unix_socket' => env('DB_SOCKET', '\/Applications\/MAMP\/tmp\/mysql\/mysql.sock'),\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u301c\u7701\u7565\u301c\n]<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306b\u4fee\u6b63\u5f8c\u3001\u518d\u5ea6 migration\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4eca\u5ea6\u306f\u554f\u984c\u306a\u304f\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MAMP\u74b0\u5883\u3067\u3001Laravel\u3067php artisan migrate\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f No such file or directory (SQL: select * from informat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,131],"tags":[],"class_list":["post-10005","post","type-post","status-publish","format-standard","hentry","category-laravel","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10005"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10005\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}