-1

I bought new MacBook Pro,i install mysql in it, and then install sequel pro to view the table and database, but when I command php artisan migrate this error accuse error image

almost last 30 hours I am suffering this Problem can any one help see

dhruvin prajapati
  • 184
  • 1
  • 3
  • 15

1 Answers1

0

I would suggest installing homestead to develop on locally or valet.

https://laravel.com/docs/6.x/homestead https://laravel.com/docs/6.x/valet

If neither one of those are an option you can try php artisan serve

https://laravel.com/docs/master#installing-laravel

Once the application is serving with one of the three options mentioned about you then connect yo your database.

Without serving the application somehow it does not know to connect to localhost from the application.

That is why you get the error message when trying to migrate is because the application doesn't know how to connect to your intallation of MySQL.

Using a virtualized development environment such as homestead with protecting the integrity of your computer (host machine) and allow it to simulate an environment closer to production.

jeremykenedy
  • 4,150
  • 1
  • 17
  • 25