I have a file only containging the following code:

PHP Code:
<?
$dbcnx = @mysql_connect("localhost", "root", "bmcadmin");
if (!$dbcnx) {
  echo( "<P>Unable to connect to the " .
        "database server at this time.</P>" );
  exit();
}else{
  echo( "Success!!" );
}
?>
Every time I run it, it fails. Is there a way that I can find out a more specific reason why it will not connect? Thanks.