I see the maintenance page. Try using this code and giving me a link to it:
$con = mysqli_connect('HOST','USERNAME','PASSWORD','DATABASE');
if (!$con) {
echo 'An error occurred.';
}
else {
echo 'The connection has succeeded!';
}
I know, nothing to put out the actual error but it should give more...