Warning: Unknown MySQL Server Host
I have a production webApplication running on linux, apache; which most of the time runs fine, except once a while; I receive this warning message:
Warning: Unknown MySQL Server Host 'serverName.com' (11) in /usr/local/apache/htdocs/webApplication/db.php on line 12
...here is my db.php ...
<?PHP
function dbConn()
{
$hostname = "servername.com";
$username = "root";
$password = "the_pwd";
$dbname = "mysqldbName";
$dbLink = mysql_connect ($hostname, $username, $password) OR DIE("Unable to connect to database");
mysql_select_db ($dbname) or die("Unable to select database");
return $dbLink;
}
function dbEnd($dbLink)
{
mysql_close($dbLink);
}
?>
... end of db.php ...
Any idea why I get this warning?
Subject
Written By
Posted
Warning: Unknown MySQL Server Host
August 08, 2005 09:34AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.