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. 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
Here is my setup code:
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.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
APP_NAME= Laravel
APP_ENV=local
APP_KEY=base64:nmcR0V2cbq+26H3EBdLmYRQN5bkiOryROTxHpvUzuvA=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL= http://voyager.dev
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=voyager
DB_USERNAME=homestead
DB_PASSWORD=secret
Please help me to solve this problem. Thanks
You need to ssh into Vagrant and then run artisan command to migrate database. Once you do this will be fixed.
你有没有试过
php artisan migrate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.