Connection Failure use DBI::Pg
"W. Lincoln Harvey" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.general |
|---|---|
| Message-ID | <[email protected]> |
I am trying to connect to PostgreSQL with DBI on Mac OSX 10.8. Everything appears to be installed correctly, and I can connect manually to my db with psql. However, when I try to connect with DBI::Pg, I get the following error:
DBI connect('db=mydb','lincoln',...) failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? at ./dbipic2.pl line 41.
Any help is greatly appreciated.
Lincoln