Check whether MySQL server is running at all.
If that's the case, check whether you've entered the correct hostname and port number for your MySQL server (typically it's localhost:3306 or 127.0.0.1:3306).
And last possibility would be to check your firewall on the server whether it's blocking MySQL's port
in laravel 5, make sure you update your database on .env file next to vender folder look up at .env at line 6 see as "DB_DATABASE=laracasts5" and make a new schema as "laracasts5" on your mysql. using VM VirtualBox and type php artisan migrate. see as http://laravel.com/docs/5.0/homestead#daily-usage.
To connect to your MySQL or Postgres database from your main machine via Navicat or Sequel Pro, you should connect to 127.0.0.1 and port 33060 (MySQL) or 54320 (Postgres). The username and password for both databases is homestead / secret.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community