Hi,出错了!

SQLSTATE[HY000] [1045] Access denied for user 'www_dnadogs_com'@'localhost' (using password: YES)

错误位置

/www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/pdo.php  LINE: 40

33      * 用于初始化运行环境,或对基本变量进行赋值
34      *
35      * @param array $params 数据库连接参数,如主机名,数据库用户名,密码等
36      */
37     public function __construct($params = array()) {
38         //连接数据库 ,PDO::ATTR_PERSISTENT => true
39         $params['charset']=empty($params['charset'])?'utf8':$params['charset'];
40         $this->db_link = @new PDO("mysql:host={$params['host']};port={$params['port']};dbname={$params['name']}", $params['user'], $params['pwd'], array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES {$params['charset']}"));
41         if (!$this->db_link) {
42             trigger_error($params['driver'] . ' Server connect fail! <br/>Error Message:' . $this->error() . '<br/>Error Code:' . $this->errno(), E_USER_ERROR);
43         }
44         return true;
45     }
46 
47     /**
TRACE
#0  include() called at [/www/wwwroot/www.nicknsteel.com/ptcms/function.php:50]
#1  halt(SQLSTATE[HY000] [1045] Access denied for user 'www_dnadogs_com'@'localhost' (using password: YES), /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/pdo.php, 40) called at [/www/wwwroot/www.nicknsteel.com/ptcms/core/pt.php:229]
#2  pt::exception(PDOException Object ([] => SQLSTATE[HY000] [1045] Access denied for user 'www_dnadogs_com'@'localhost' (using password: YES),[] => ,[] => 1045,[] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/pdo.php,[] => 40,[] => Array ([0] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/pdo.php,[line] => 40,[function] => __construct,[class] => PDO,[type] => ->,[args] => Array ([0] => mysql:host=localhost;port=3306;dbname=www_dnadogs_com,[1] => www_dnadogs_com,[2] => 5pwpcSzNpKb8stCA,[3] => Array ([1002] => SET NAMES utf8))),[1] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/dao.php,[line] => 256,[function] => __construct,[class] => Driver_Db_Mysql_Pdo,[type] => ->,[args] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => www_dnadogs_com,[user] => www_dnadogs_com,[pwd] => 5pwpcSzNpKb8stCA,[charset] => utf8))),[2] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/dao.php,[line] => 271,[function] => slave,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[3] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/dao.php,[line] => 227,[function] => getTableField,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[4] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/driver/db/dao.php,[line] => 111,[function] => setTable,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[5] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/core/db.php,[line] => 28,[function] => __construct,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ([0] => Array ([type] => mysql,[master] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => www_dnadogs_com,[user] => www_dnadogs_com,[pwd] => 5pwpcSzNpKb8stCA)),[singleton] => 1,[slave] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => www_dnadogs_com,[user] => www_dnadogs_com,[pwd] => 5pwpcSzNpKb8stCA)),[driver] => pdo,[prefix] => ptcms_,[charset] => utf8),[1] => NovelSearch_info)),[6] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/core/base.php,[line] => 86,[function] => getInstance,[class] => PT_Db,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[7] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/core/model.php,[line] => 70,[function] => db,[class] => PT_Base,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[8] => Array ([file] => /www/wwwroot/www.nicknsteel.com/application/novelsearch/model/novelsearch_info.php,[line] => 153,[function] => __call,[class] => PT_Model,[type] => ->,[args] => Array ([0] => update,[1] => Array ([0] => Array ([dayvisit] => 0)))),[9] => Array ([file] => /www/wwwroot/www.nicknsteel.com/application/novelsearch/model/novelsearch_info.php,[line] => 153,[function] => update,[class] => NovelSearch_infoModel,[type] => ->,[args] => Array ([0] => Array ([dayvisit] => 0))),[10] => Array ([file] => /www/wwwroot/www.nicknsteel.com/application/novelsearch/controller/index.php,[line] => 2,[function] => setvisit,[class] => NovelSearch_infoModel,[type] => ->,[args] => Array ()),[11] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/core/pt.php,[line] => 91,[function] => indexAction,[class] => indexController,[type] => ->,[args] => Array ()),[12] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/core/pt.php,[line] => 33,[function] => app,[class] => pt,[type] => ->,[args] => Array ()),[13] => Array ([file] => /www/wwwroot/www.nicknsteel.com/ptcms/ptcms.php,[line] => 170,[function] => start,[class] => pt,[type] => ->,[args] => Array ()),[14] => Array ([file] => /www/wwwroot/www.nicknsteel.com/index.php,[line] => 20,[args] => Array ([0] => /www/wwwroot/www.nicknsteel.com/ptcms/ptcms.php),[function] => include)),[] => ,[errorInfo] => ))
文件加载
/www/wwwroot/www.nicknsteel.com/index.php
/www/wwwroot/www.nicknsteel.com/ptcms/ptcms.php
/www/wwwroot/www.nicknsteel.com/ptcms/function.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/base.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/pt.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/config.php
/www/wwwroot/www.nicknsteel.com/application/common/config.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/plugin.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/request.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/dispatcher.php
/www/wwwroot/www.nicknsteel.com/application/common/function.php
/www/wwwroot/www.nicknsteel.com/application/novelsearch/controller/index.php
/www/wwwroot/www.nicknsteel.com/application/common/controller/common.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/controller.php
/www/wwwroot/www.nicknsteel.com/application/user/model/user.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/model.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/cookie.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/view.php
/www/wwwroot/www.nicknsteel.com/template/laoniu/config.php
/www/wwwroot/www.nicknsteel.com/application/cron/model/cron.php
/www/wwwroot/www.nicknsteel.com/application/novelsearch/model/novelsearch_info.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/db.php
/www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/dao.php
/www/wwwroot/www.nicknsteel.com/ptcms/driver/db/dao.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/cache.php
/www/wwwroot/www.nicknsteel.com/ptcms/driver/cache/memcache.php
/www/wwwroot/www.nicknsteel.com/ptcms/driver/db/mysql/pdo.php
/www/wwwroot/www.nicknsteel.com/ptcms/core/response.php
/www/wwwroot/www.nicknsteel.com/ptcms/error.tpl