Failed to create default database, SQLSTATE[HY000] [2002] Connection refused
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] Connection refused (SQL: select *, count(*) as total from `items` group by `domain`)
php artisan mycommand:run --env=local
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
//'strict' => true,
'strict' => false,
'engine' => null,
],