Support the ongoing development of Laravel.io →
Configuration Database
Last updated 2 years ago.
0

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

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Frensswa frensswa Joined 12 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.