I'm not looking for the "use
I want to run the site on my local development environment and use the unix socket to connect to the database. In my
settings file I've set the host to
'host' => 'localhost', and I've tried
'unix_socket' => '/tmp/mysql.socket', as well, but both result in a
PDOException: SQLSTATE[HY000]  error in the apache logs.
When I connect directly to mysql through the command line I connect through the unix socket, but when I run it through Drupal it only connects through the TCP connection. I am under the impression Drupal will connect through the socket if the
localhost host name is used, but this doesn't appear to be the case here.
Perhaps there's some other local configuration I'm missing.