The error implies that your server is unable to connect to the database server you have specified. Does the connection work when viewed on the testing server? I'd have to do screen sharing to fully debug this, but my guess is that the database server doesn't allow remote connections.