Then i changed and tried to connect saying DBI->connect ("DBI g:dbname=mydb", "", "") by using no user name and password, again I couldn't connect. Then I changed to pass the username postgres and ...