前提・実現したいこと
制作したテーブルをマイグレーションを実行しようとしたのですが、下記のようなエラーがでました。
解決方法が検討つかず、全くわからないため質問させていただきました。
発生している問題・エラーメッセージ
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = bbc and table_name = migrations and table_type = 'BASE TABLE') at /Users/ices_natsu/Documents/github/study/Larabel-study/bbc/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| // message to include the bindings with SQL, which will make this exception a 662| // lot more helpful to the developer instead of just the database's errors. 663| catch (Exception $e) { > 664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668|
該当のソースコード
Larabel
1php artisan migtate
試したこと
laradockとlaravelのenvを再確認し、「コンテナの中」でマイグレーションを実行しているか確認した。
回答1件
あなたの回答
tips
プレビュー