当输入命令php artisan migration时,它给我一个错误:
Illuminate\Database\QueryException : SQLSTATE[HY000] [1049] Unknown
database 'proj' (SQL: select * from information_schema.tables where
table_schema = proj and table_name = migrations and table_type = 'BASE
TABLE')
尽管,我编辑了.env
文件,并创建了数据库proj
并重新启动cmd,然后我也尝试了
php artisan config:cache
和类似的命令,但仍然无法使用
这意味着您没有创建此数据库。首先创建数据库,然后运行:php artisan migrate:fresh
创建表。