I got the following error when trying to access the URL http://localhost/my_website/couch_directory/

Could not connect to database
No such file or directory


The work around for me was to set:

Code: Select all
define( 'K_DB_HOST', 'localhost' );


to be:

Code: Select all
define( 'K_DB_HOST', '127.0.0.1' );


Hopefully this helps others having this same issue. The second error message, 'no such file or directory', is misleading. Hopefully this can be removed when this issue occurs? Also is it possible to have more detailed error reporting when database connection issues occur? e.g. hostname appears wrong etc?