I've installed Drupal Console and can confirm it is in the proper directory, etc.

I run the command "Drupal" from my home directory and I see a Drupal Console help list of commands, but when I run it inside my site root directory, I get a PDO Exception error. I can't figure this one out. Should I move Drupal Console into my Drupal site directory? Thanks for the help. enter image description here

1 Answer 1


Try to update below in your php.ini. You need to define php for correct location for .sock file.

mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock


If you will not getting result then try to replace below in your settings.php file.

Replace 'host' => 'localhost',

With 'host' => '',

  • I actually was able to eventually figure this out. But you're correct, this is exactly what it was. I had to replace 'localhost' with ''. Thanks a lot for your time and help though.
    – Daniel
    Commented Jun 21, 2015 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.