在另一个文件夹中的Laravel项目转移时遇到了错误
我将Laravel项目从一个文件夹复制到另一个文件夹。我试图运行PHP Artisan迁移
,但是我有一个错误。在新的根文件夹中,任何命令都无法成功执行。我尝试运行作曲家更新&作曲家安装
,但也行不通。
错误是: SQLSTATE [42S02]:找不到基本表或视图:1146表'db_name.table_name'不存在(sql:sef column from table_name)
我从.env
/代码>。如果数据库是从旧数据库导入的,则可以解决该问题。
I copy my Laravel project from one folder to another folder. I tried to run php artisan migrate
, but I got an error. No any command can be executed successfully in the new root folder. I tried to run composer update & composer install
but it also does not work.
The error is:SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_name.table_name' doesn't exist (SQL: select column from table_name )
I changed the database name from .env
. The problem is solved if the database is imported from the old database.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论