要求是:
Open up config.php and input the credentials of your MySql database.
请问我具体该修改什么?我没有学过php。希望大神帮下忙。<?php /*
AthenaHTTP
*/if(!defined('AthenaHTTP')) header('Location: .');$DB_HOST = 'athena-mysql';
$DB_USER = 'root';
$DB_PASS = '123456';
$DB_NAME = 'athena2';$TIME = strtotime(gmdate('M d Y H:i:s'));mysql_connect($DB_HOST, $DB_USER, $DB_PASS) or die(mysql_error());
mysql_select_db($DB_NAME) or die(mysql_error());?>

解决方案 »

  1.   

    if(!defined('AthenaHTTP')) header('Location: .');        $DB_HOST = 'athena-mysql';  //主机名
            $DB_USER = 'root';          //数据库用户名
            $DB_PASS = '123456';        //数据库密码
            $DB_NAME = 'athena2';       //数据库名        $TIME = strtotime(gmdate('M d Y H:i:s'));        mysql_connect($DB_HOST, $DB_USER, $DB_PASS) or die(mysql_error()); // 链接数据库
            mysql_select_db($DB_NAME) or die(mysql_error());        
      

  2.   

    mysql_select_db($DB_NAME) or die(mysql_error());                    //选择要操作的数据库名,如果失败或者不存在返回错误信息