【发布时间】:2020-02-19 17:06:49
【问题描述】:
我的 xampp phpmyadmin 出现问题,我不得不卸载并重新安装它,之后,我尝试将我的文件复制回来并运行我的应用程序,但它无法正常工作。
它给了我
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.categories' doesn't exist in engine (SQL: select * from `categories`)
我已尝试将我的文件迁移到数据库,但它也无法正常工作
它是这样说的:
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.migrations' doesn't exist in engine (SQL: select `m
igration` from `migrations` order by `batch` asc, `migration` asc)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'blog.migrations' doesn't exist in engine
【问题讨论】:
-
您在
.env文件和phpadmin中的数据库名称是什么? -
我的数据库名称是博客,在 phpmyadmin 中它也是博客
-
请有人帮助我不能重新开始
-
你试过
php artisan migrate:fresh吗?这将重新运行所有迁移,因此只有在其中没有有价值的信息时才使用它
标签: laravel