[support] Drupal 7/Postgres integration

Ivan Sergio Borgonovo mail at webthatworks.it
Tue May 24 22:20:33 UTC 2011


On Sat, 21 May 2011 07:10:27 -0400
mark bradley <gopearls42 at gmail.com> wrote:

> In my psql command-line test I'm actually connecting over TCP
> since it's between two hosts.

I don't know if there are any installation logs.

Check your settings.php

Check if your php has support for postgres pdo.
php -i | grep -i pdo

Write a small php script on the box running drupal to see if you can
connect.

$dbh = new PDO( "pgsql:dbname=$dbname;host=$host", $username,
$password );
foreach( $dbh->query('select * from users limit 1') as $row ) {
  print_r( $row );
}

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list