前提・実現したいこと
laravelでDBのMigrationを試みたところ下記のエラーメッセージが出てきて
マイグレーションに失敗しました。
エラー内容をググってもさっぱりわからないのでご教示いただけますでしょうか?
何卒宜しくお願い致します。
発生している問題・エラーメッセージ
Illuminate\Database\QueryException : Database (=database/database.sqlite) does not exist. (SQL: select * from sqlite_master where type = 'table' and name = migrations) at /Users/01010299/Desktop/phpstudy/bookapp/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| Exception trace: 1 InvalidArgumentException::("Database (=database/database.sqlite) does not exist.") /Users/01010299/Desktop/phpstudy/bookapp/vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php:34 2 Illuminate\Database\Connectors\SQLiteConnector::connect(["sqlite", "=database/database.sqlite", "", "sqlite"]) /Users/01010299/Desktop/phpstudy/bookapp/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:218 Please use the argument -v to see more details.
該当のソースコード
php artisan migrate
試したこと
該当プロジェクトで”php artisan migrate”を実行
補足情報(FW/ツールのバージョンなど)
Laravelのバージョン
Lravel5.5
・下記のクエリで検索
”PHP Laravel DB migration”
" Illuminate\Database\QueryException "
回答1件
あなたの回答
tips
プレビュー