$ perl tt.pl DBI connect('dbname=postgres;host=laddakh','postgres',...) failed: could 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