All I can say is that your MySQL server wasn't accessible at that time. For what reason I have no idea. If you can successfully connect to mysql with mysql_connect(), then there's something wrong with what you're putting in as the values during setup.
Since noone here knows what you're putting in, or what they expect, we can't really help you. All we can say is that you should keep trying, or get their support involved.