{"id":1116,"date":"2019-02-20T17:33:08","date_gmt":"2019-02-20T08:33:08","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1116"},"modified":"2019-02-20T23:26:00","modified_gmt":"2019-02-20T14:26:00","slug":"sqlstate42s01-base-table-or-view-already-exists-1050-table","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2019\/02\/20\/sqlstate42s01-base-table-or-view-already-exists-1050-table\/","title":{"rendered":"SQLSTATE[42S01]: Base table or view already exists: 1050 Table"},"content":{"rendered":"<h2>Laravel\u306emigrate\u3067\u30a8\u30e9\u30fc\u767a\u751f\u3057\u307e\u3057\u305f<\/h2>\n<div class=\"borderBox\">SQLSTATE[42S01]: Base table or view already exists: 1050 Table ' \uff5e\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\uff5e '<\/div>\n<p>\u3044\u3063\u305f\u3044\u4f55\u4e8b\u3060\uff01\u3068\u8a00\u3046\u3053\u3068\u3067\u8abf\u3079\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30c6\u30fc\u30d6\u30eb\u3042\u308b\u306e\u306b\u307e\u305f\u4f5c\u308d\u3046\u3068\u3057\u3066\u308b\u3088<\/h3>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u300e\u4f5c\u6210\u6307\u793a\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u65e2\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u300f\u3068\u8a00\u3046\u3082\u306e\u3067\u3057\u305f\u3002<br \/>\n\u3093\uff5e\uff5e\u4f5c\u3063\u305f\u899a\u3048\u306f\u3042\u308b\u3051\u3069\u3001\u306a\u3093\u3067\u3082\u3046\u4e00\u56de\u4f5c\u308d\u3046\u3068\u3057\u3066\u308b\u3093\u3060\u308d\u3046\u3002<\/p>\n<p>\u78ba\u8a8d\u306e\u305f\u3081phpMyAdmin\u3067\u30c6\u30fc\u30d6\u30ebmigrations\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3046\u3093\u3001\u8a18\u8f09\u304c\u3042\u308b\u306e\u3067\u78ba\u304b\u306b\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u7d50\u5c40\u539f\u56e0\u306f\u4e0d\u660e\u3002<\/h3>\n<p>\u4e00\u5ea6\u4f5c\u6210\u5b9f\u884c\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u5ea6\u4f5c\u308d\u3046\u3068\u3057\u305f\u539f\u56e0\u306f\u7d50\u5c40\u308f\u304b\u3089\u305a\u3002<\/p>\n<p>\u5168\u3066\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u5ea6\u4f5c\u308d\u3046\u304b\u3068\u3082\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u9762\u5012\u306a\u306e\u3067phpMyAdmin\u304b\u3089\u30a8\u30e9\u30fc\u306e\u51fa\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3057\u3066\u518d\u5ea6\u3010php artisan migrate\u3011\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Seeder\u3082\u4f5c\u3063\u3066\u3042\u308b\u3057\u306d\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3057\u3066\u518d\u5ea6migrate<\/h3>\n<p>\u4f55\u306e\u554f\u984c\u3082\u306a\u304f\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001migrations\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u540c\u3058\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u540d\u304c2\u3064\u8a18\u8f09\u3055\u308c\u3066\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u3082\u554f\u984c\u306f\u8d77\u3053\u3089\u306a\u3044\u306e\u304b\u306a\uff1f<\/p>\n<h3>\u8ffd\u8a18\uff1a\u539f\u56e0\u304c\u5224\u660e\u3057\u307e\u3057\u305f<\/h3>\n<p>\u3069\u3046\u3084\u3089migration\u30d5\u30a1\u30a4\u30eb\u306e\u30b9\u30da\u30eb\u30df\u30b9\u306b\u6c17\u3065\u304d\u5b9f\u884c\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u5909\u66f4\u3092\u3057\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u306a\u308b\u307b\u3069\u3001\u540d\u524d\u304c\u9055\u3048\u3070\u3082\u3046\u4e00\u56de\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u306d\u3002<\/p>\n<p>\u30b9\u30da\u30eb\u30df\u30b9\u306b\u306f\u6c17\u3092\u4ed8\u3051\u306a\u304d\u3083\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u306emigrate\u3067\u30a8\u30e9\u30fc\u767a\u751f\u3057\u307e\u3057\u305f SQLSTATE[42S01]: Base table or view already exists: 1050 Table ' \uff5e\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\uff5e ' \u3044\u3063\u305f\u3044\u4f55\u4e8b\u3060\uff01 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[34],"tags":[153,98,327,53,63,46,188,52,45],"class_list":["post-1116","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-memorandum","tag-laravel","tag-php","tag-327","tag-53","tag-63","tag-46","tag-188","tag-52","tag-45"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/11\/laravel_logo.png?fit=1118%2C538&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1116"}],"version-history":[{"count":3,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1116\/revisions"}],"predecessor-version":[{"id":1119,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1116\/revisions\/1119"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/944"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}