I get this error:
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/apache/htdocs/test.php on line 2

Unable to connect to the database server at this time.


Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/apache/htdocs/test.php on line 10

Warning: MySQL: A link to the server could not be established in /usr/local/apache/htdocs/test.php on line 10

Unable to locate the files database at this time.
The code is:

PHP Code:
<?
$dbcnx 
mysql_connect("localhost""dummy""");
if (!
$dbcnx) {
  echo( 
"<P>Unable to connect to the " .
        
"database server at this time.</P>" );
}else{
  echo( 
"<p>Success connect to server!!" );
}

if (! 
mysql_select_db("files") ) {
  echo( 
"<P>Unable to locate the files " .
        
"database at this time.</P>" );
}else{
  echo( 
"<p>Success connect to table!</p>" );
}
?>
Does anyone have an idea of how I can remidy this?