You have forge in one section and homestead in the other match the two and see if it works.
this is the fallback, it has nothing to do with it. After the "," is for using as a fallback, when I have no informations in the .env :-)
@heyalbert, did you try restarting MySQL? config seems ok so i guess it's a server problem
What's your default database driver set to? It's in param
And can you connect to db with mysql console client?
had the same problem fixed it with adding this line in the .env file
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
so your .env file code should loook like this
'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '8889'), 'database' => env('DB_DATABASE', 'linda'), 'username' => env('DB_USERNAME', 'root'), 'password' => env('DB_PASSWORD', 'root'), 'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => fasle, 'engine' => null, ],
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us