4

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

3

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

OR

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

Replace 'host' => 'localhost',

With 'host' => '127.0.0.1',

1
  • 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 '127.0.0.1'. Thanks a lot for your time and help though.
    – Daniel
    Jun 21, 2015 at 4:06

Your Answer

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

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