ok had another look and found this error:
databaseAccess denied for user 'domain'@'localhost' (using password: NO)
here's the script I'm using now, I've xxx out the detail, but no luck so far...
<?php
$server="mysql2.**********.com";
$username="xxxxxxxx";
$password="xxxxxxxx";
$database="xxxxxxxxxx";
mysql_connect($server,$username,$password);
@mysql_select_db($database) or die( 'Unable to select database' . mysql_error());
?>