Xinu (xinu) wrote in php,
Xinu
xinu
php

  • Mood:

Pear::DB Woes

I'm trying to connect to a PostgreSQL database on a system that only allows unix socket connections. The DNS I'm trying is below, but no joy so far. I've verified that I can connect to the database on the commandline with 'psql'.
$db = DB::connect('pgsql://username:password@unix(/tmp/.s.PGSQL.5432)/database');
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments