Support the ongoing development of →
Configuration Database
Last updated 1 year ago.

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 default in config/database.php.

And can you connect to db with mysql console client?


hey albert

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', ''),
        '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!


Your banner here too?

heyalbert heyalbert Joined 11 Jun 2014


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

Your logo here?

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

© 2024 - All rights reserved.