[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: NO) (SQL: select * from information_schema.tables where table_schema
= laravel_test1 and table_name = migrations)
通常是緩存造成的
在命令行中進入程序根目錄,執行下列語句。
php artisan cache:clear php artisan config:clear php artisan serve
然后在執行 php artisan migrate
前提是檢查完了 .env和config/database.php