Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use DBI;
    
    my $dbh = DBI->connect('dbi:Pg:dbname=postgres;host=laddakh','postgres
    +','postgres',{AutoCommit=>1,RaiseError=>1,PrintError=>0});
    
  2. or download this
    DBI connect('dbname=postgres;host=laddakh','postgres',...) failed: cou
    +ld not connect to server: Connection refused
        Is the server running on host "laddakh" and accepting
        TCP/IP connections on port 5432? at tt.pl line 5