我正在尝试使用我网站上的 php 连接我的数据库。我使用以下代码进行连接,
$db_host="10.12.209.82";
$db_username="username";
$db_pass="pass";
$db_name="DBName";
mysql_connect($db_host,$db_username,$db_pass) or die("Could not connect to my sql");
mysql_connect($db_name) or die("No Database");
但是当我在我的网站上运行该文件时,它显示以下错误...
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
问题是什么,我在哪里犯了错误?