在这个网站上看了很多,仍然找不到答案。任何帮助将不胜感激。
这是我遇到问题的代码:
//This file contains the database access information.
//This file also establishes a connection to MySQL
//and selects the database
//Set the database access information as constants:
DEFINE ('DB_USER','alapetz');
DEFINE ('DB_PASSWORD','******');
DEFINE ('DB_HOST','localhost');
DEFINE ('DB_NAME', 'alapetz');
//Make the connection
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' .
mysqli_connect_error() );
?>
尝试了许多解决方案,例如“创建其他用户”或“设置权限”但无法找到解决方案。
提前感谢您的帮助。