Problem connect to DBD::PgPP <--> Perl

Posted on 2009-02-23
Last Modified: 2012-08-14
I am trying to connect via DBI to a PostgresPlus server.

I get the following error:
DBI->connect('dbname=$dbname; host=$host; port=$port','$username',...) failed:
Couldnt connect to /tmp/.s.PGSQL.5432: at C:/Perl/site/lib/DBD/
I tried to connect PostgresPlus server both in winXP and linux using perl script.Both machines prompt me above error message.
My client pgAdminIII is in winXP.Using pgAdminIII i able to connect to server in both machine.
Here is code snippet:
I set up DBD-PgPP via PPM.
Any ideas as to what I am missing.

my $conn = DBI->connect("dbi:PgPP:dbname=$dbname; host=$host;port=$port" ,"$username", "password",{ RaiseError => 1, AutoCommit => 0});

Open in new window

Question by:tankergoblin
    LVL 6

    Expert Comment


    what data are you passing to $host? looks like script tries to use socket to connect to pg server..

    best regards,
    LVL 3

    Accepted Solution


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: ( This requires some add-o…
    Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
    Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now