[英]Laravel - SQLSTATE[42S02]: Base table or view not found: 1146 Table
I'm setup homestead in my pc then i'm try to access my files via local domain.我在我的电脑上设置宅基地,然后我尝试通过本地域访问我的文件。 But when i'm trying to connect with DB then showing me this error.但是当我尝试与 DB 连接时,向我显示此错误。 I can't access my others projects too.我也无法访问我的其他项目。 I setup everything very well.我把一切都设置得很好。 But i don't know why showing me this error.但我不知道为什么向我显示这个错误。
Note: I'm using windows 8.1注意:我使用的是 Windows 8.1
Here is my setup code:这是我的设置代码:
ip: "192.168.10.10" ip:“192.168.10.10”
memory: 2048内存:2048
cpus: 1处理器:1
provider: virtualbox提供者:virtualbox
authorize: ~/.ssh/id_rsa.pub授权:~/.ssh/id_rsa.pub
keys:键:
- ~/.ssh/id_rsa
folders:文件夹:
- map: F:/xampp/htdocs/Projects
to: /home/vagrant/Projects
sites:网站:
- map: govt-university.dev
to: /home/vagrant/Projects/govt-university/public
- map: voyager.dev
to: /home/vagrant/Projects/voyager/public
- map: evaluationplus.dev
to: /home/vagrant/Projects/laravel-evaluationplus/public
- map: laravel-university.dev
to: /home/vagrant/Projects/laravel-evaluationplus/public
databases: - homestead数据库: - 宅基地
Host file主机文件
192.168.10.10 govt-university.dev 192.168.10.10 voyager.dev 192.168.10.10 evaluationplus.dev 192.168.10.10 laravel-university.dev
ENV file ENV文件
APP_NAME= Laravel APP_NAME= Laravel
APP_ENV=local APP_ENV=本地
APP_KEY=base64:nmcR0V2cbq+26H3EBdLmYRQN5bkiOryROTxHpvUzuvA= APP_KEY=base64:nmcR0V2cbq+26H3EBdLmYRQN5bkiOryROTxHpvUzuvA=
APP_DEBUG=true APP_DEBUG=真
APP_LOG_LEVEL=debug APP_LOG_LEVEL=调试
APP_URL= http://voyager.dev APP_URL= http://voyager.dev
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=127.0.0.1
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=voyager DB_DATABASE=航海者
DB_USERNAME=homestead DB_USERNAME=宅基地
DB_PASSWORD=secret DB_PASSWORD=秘密
Please help me to solve this problem.请帮我解决这个问题。 Thanks谢谢
You need to ssh into Vagrant and then run artisan command to migrate database.您需要通过 ssh 进入 Vagrant,然后运行 artisan 命令来迁移数据库。 Once you do this will be fixed.一旦你这样做,这将被修复。
你有没有试过
php artisan migrate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.