sqlstate hy000 error 2002 no such file or directory magento 2 code example
Example: drush SQLSTATE[HY000] [2002] No such file or directory
$databases['default']['default'] = array (
'database' => 'drupal',
'username' => 'root',
'password' => 'root',
'prefix' => '',
'host' => '127.0.0.1',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
);