in reply to DBI->connect fails

Your error message and your code don't match. Please post the actual code and the actual error message.