Home > Enterprise >  Homestead migrate mysql problems
Homestead migrate mysql problems

Time:04-10

I've a problem with my laravel project. I can only use php artisan migrate by vagrant ssh. In normal terminal it shows me a connection error with database.

This is my env file

DB_CONNECTION=mysql

DB_HOST=localhost

DB_PORT=33060

DB_DATABASE=db_corsi

DB_USERNAME=homestead

DB_PASSWORD=secret

CodePudding user response:

I think this is not an issue because vagrant is VM so you need to access it to can run the artisan migrate

CodePudding user response:

change port DB_PORT=33060 to DB_PORT=3306

  • Related