Drupal 7 configuration error with Postgresql in Mac OS 10.6.5

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2011-01-12T02:45:19Z Indexed on 2011/01/12 2:54 UTC
Read the original article Hit count: 202

Filed under:
|

I am trying to configure Drupal 7 with Postgres. At the database setup step, I get the following error.

Warning: PDO::_construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in DatabaseConnection->_construct() (line 300 of /Users/shamod/Sites/drupal/7/includes/database/database.inc). In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider. Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] No such file or directory. Is the database server running? Does the database exist, and have you entered the correct database name? Have you entered the correct username and password? Have you entered the correct database hostname?

NOTE: I am trying to connect to Postgresql but it fails on var/mysql/mysql.sock error. I have setup the database connection string in settings.php for Postgresql. It still does not work.

Any idea?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about postgresql