/www/wwwroot/china-linlong.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/china-linlong.com/ptcms/function.php:50] #1 halt(SQLSTATE[HY000] [2002] No such file or directory, /www/wwwroot/china-linlong.com/ptcms/driver/db/mysql/pdo.php, 40) called at [/www/wwwroot/china-linlong.com/ptcms/core/pt.php:229] #2 pt::exception(PDOException Object ([] => SQLSTATE[HY000] [2002] No such file or directory,[] => ,[] => 2002,[] => /www/wwwroot/china-linlong.com/ptcms/driver/db/mysql/pdo.php,[] => 40,[] => Array ([0] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/driver/db/mysql/pdo.php,[line] => 40,[function] => __construct,[class] => PDO,[type] => ->,[args] => Array ([0] => mysql:host=localhost;port=3306;dbname=china-linlong,[1] => china-linlong,[2] => epZPT4Ayfb64Dzsy,[3] => Array ([1002] => SET NAMES utf8))),[1] => Array ([file] => /www/wwwroot/china-linlong.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] => china-linlong,[user] => china-linlong,[pwd] => epZPT4Ayfb64Dzsy,[charset] => utf8))),[2] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/driver/db/dao.php,[line] => 271,[function] => slave,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[3] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/driver/db/dao.php,[line] => 227,[function] => getTableField,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[4] => Array ([file] => /www/wwwroot/china-linlong.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/china-linlong.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] => china-linlong,[user] => china-linlong,[pwd] => epZPT4Ayfb64Dzsy)),[singleton] => 1,[slave] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => china-linlong,[user] => china-linlong,[pwd] => epZPT4Ayfb64Dzsy)),[driver] => pdo,[prefix] => ptcms_,[charset] => utf8),[1] => NovelSearch_info)),[6] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/core/base.php,[line] => 86,[function] => getInstance,[class] => PT_Db,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[7] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/core/model.php,[line] => 70,[function] => db,[class] => PT_Base,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[8] => Array ([file] => /www/wwwroot/china-linlong.com/application/novelsearch/model/novelsearch_info.php,[line] => 2,[function] => __call,[class] => PT_Model,[type] => ->,[args] => Array ([0] => update,[1] => Array ([0] => Array ([dayvisit] => Array ([0] => exp,[1] => dayvisit+339),[weekvisit] => Array ([0] => exp,[1] => weekvisit+339),[monthvisit] => Array ([0] => exp,[1] => monthvisit+339),[allvisit] => Array ([0] => exp,[1] => allvisit+339),[id] => 66)))),[9] => Array ([file] => /www/wwwroot/china-linlong.com/application/novelsearch/model/novelsearch_info.php,[line] => 2,[function] => update,[class] => NovelSearch_infoModel,[type] => ->,[args] => Array ([0] => Array ([dayvisit] => Array ([0] => exp,[1] => dayvisit+339),[weekvisit] => Array ([0] => exp,[1] => weekvisit+339),[monthvisit] => Array ([0] => exp,[1] => monthvisit+339),[allvisit] => Array ([0] => exp,[1] => allvisit+339),[id] => 66))),[10] => Array ([file] => /www/wwwroot/china-linlong.com/application/common/controller/common.php,[line] => 2,[function] => incvisit,[class] => NovelSearch_infoModel,[type] => ->,[args] => Array ([0] => 66)),[11] => Array ([file] => /www/wwwroot/china-linlong.com/application/novelsearch/controller/chapter.php,[line] => 2,[function] => getnovelid,[class] => CommonController,[type] => ->,[args] => Array ()),[12] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/core/pt.php,[line] => 87,[function] => init,[class] => chapterController,[type] => ->,[args] => Array ()),[13] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/core/pt.php,[line] => 33,[function] => app,[class] => pt,[type] => ->,[args] => Array ()),[14] => Array ([file] => /www/wwwroot/china-linlong.com/ptcms/ptcms.php,[line] => 170,[function] => start,[class] => pt,[type] => ->,[args] => Array ()),[15] => Array ([file] => /www/wwwroot/china-linlong.com/index.php,[line] => 20,[args] => Array ([0] => /www/wwwroot/china-linlong.com/ptcms/ptcms.php),[function] => include)),[] => ,[errorInfo] => ))
文件加载
/www/wwwroot/china-linlong.com/index.php /www/wwwroot/china-linlong.com/ptcms/ptcms.php /www/wwwroot/china-linlong.com/ptcms/function.php /www/wwwroot/china-linlong.com/ptcms/core/base.php /www/wwwroot/china-linlong.com/ptcms/core/pt.php /www/wwwroot/china-linlong.com/ptcms/core/config.php /www/wwwroot/china-linlong.com/application/common/config.php /www/wwwroot/china-linlong.com/ptcms/core/plugin.php /www/wwwroot/china-linlong.com/ptcms/core/request.php /www/wwwroot/china-linlong.com/ptcms/core/dispatcher.php /www/wwwroot/china-linlong.com/application/common/function.php /www/wwwroot/china-linlong.com/application/novelsearch/controller/chapter.php /www/wwwroot/china-linlong.com/application/common/controller/common.php /www/wwwroot/china-linlong.com/ptcms/core/controller.php /www/wwwroot/china-linlong.com/application/user/model/user.php /www/wwwroot/china-linlong.com/ptcms/core/model.php /www/wwwroot/china-linlong.com/ptcms/core/cookie.php /www/wwwroot/china-linlong.com/ptcms/core/view.php /www/wwwroot/china-linlong.com/template/default/config.php /www/wwwroot/china-linlong.com/application/cron/model/cron.php /www/wwwroot/china-linlong.com/ptcms/core/cache.php /www/wwwroot/china-linlong.com/ptcms/driver/cache/memcache.php /www/wwwroot/china-linlong.com/ptcms/core/input.php /www/wwwroot/china-linlong.com/ptcms/core/filter.php /www/wwwroot/china-linlong.com/application/novelsearch/model/novelsearch_info.php /www/wwwroot/china-linlong.com/ptcms/core/db.php /www/wwwroot/china-linlong.com/ptcms/driver/db/mysql/dao.php /www/wwwroot/china-linlong.com/ptcms/driver/db/dao.php /www/wwwroot/china-linlong.com/ptcms/driver/db/mysql/pdo.php /www/wwwroot/china-linlong.com/ptcms/core/response.php /www/wwwroot/china-linlong.com/ptcms/error.tpl