阅读历史

总点击榜

更多 >
    系统发生错误 - Power By PTcms Framework
    Hi,出错了!

    SQLSTATE[HY000] [2002] No such file or directory

    错误位置

    /www/wwwroot/bf0.net/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/bf0.net/ptcms/function.php:50]
    #1  halt(SQLSTATE[HY000] [2002] No such file or directory, /www/wwwroot/bf0.net/ptcms/driver/db/mysql/pdo.php, 40) called at [/www/wwwroot/bf0.net/ptcms/core/pt.php:229]
    #2  pt::exception(PDOException Object ([] => SQLSTATE[HY000] [2002] No such file or directory,[] => ,[] => 2002,[] => /www/wwwroot/bf0.net/ptcms/driver/db/mysql/pdo.php,[] => 40,[] => Array ([0] => Array ([file] => /www/wwwroot/bf0.net/ptcms/driver/db/mysql/pdo.php,[line] => 40,[function] => __construct,[class] => PDO,[type] => ->,[args] => Array ([0] => mysql:host=localhost;port=3306;dbname=qtts_hzw6_cn,[1] => qtts_hzw6_cn,[2] => t23i5sDZpdwKXzCG,[3] => Array ([1002] => SET NAMES utf8))),[1] => Array ([file] => /www/wwwroot/bf0.net/ptcms/driver/db/dao.php,[line] => 256,[function] => __construct,[class] => Driver_Db_Mysql_Pdo,[type] => ->,[args] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => qtts_hzw6_cn,[user] => qtts_hzw6_cn,[pwd] => t23i5sDZpdwKXzCG,[charset] => utf8))),[2] => Array ([file] => /www/wwwroot/bf0.net/ptcms/driver/db/dao.php,[line] => 271,[function] => slave,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[3] => Array ([file] => /www/wwwroot/bf0.net/ptcms/driver/db/dao.php,[line] => 227,[function] => getTableField,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ()),[4] => Array ([file] => /www/wwwroot/bf0.net/ptcms/driver/db/dao.php,[line] => 111,[function] => setTable,[class] => Driver_Db_Dao,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[5] => Array ([file] => /www/wwwroot/bf0.net/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] => qtts_hzw6_cn,[user] => qtts_hzw6_cn,[pwd] => t23i5sDZpdwKXzCG)),[singleton] => 1,[slave] => Array ([0] => Array ([host] => localhost,[port] => 3306,[name] => qtts_hzw6_cn,[user] => qtts_hzw6_cn,[pwd] => t23i5sDZpdwKXzCG)),[driver] => pdo,[prefix] => ptcms_,[charset] => utf8),[1] => NovelSearch_info)),[6] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/base.php,[line] => 86,[function] => getInstance,[class] => PT_Db,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[7] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/model.php,[line] => 70,[function] => db,[class] => PT_Base,[type] => ->,[args] => Array ([0] => NovelSearch_info)),[8] => Array ([file] => /www/wwwroot/bf0.net/application/novelsearch/block/novellist.php,[line] => 51,[function] => __call,[class] => PT_Model,[type] => ->,[args] => Array ([0] => where,[1] => Array ([0] => Array ([status] => 1)))),[9] => Array ([file] => /www/wwwroot/bf0.net/application/novelsearch/block/novellist.php,[line] => 51,[function] => where,[class] => NovelSearch_infoModel,[type] => ->,[args] => Array ([0] => Array ([status] => 1))),[10] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/block.php,[line] => 34,[function] => run,[class] => novellistBlock,[type] => ->,[args] => Array ([0] => Array ([sort] => allvisit,[num] => 10))),[11] => Array ([file] => /www/wwwroot/bf0.net/runtime/template/pcmbv4.5,gook,novelsearch,topindex.php,[line] => 61,[function] => getData,[class] => PT_Block,[type] => ->,[args] => Array ([0] => novellist,[1] => Array ([sort] => allvisit,[num] => 10))),[12] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/view.php,[line] => 133,[args] => Array ([0] => /www/wwwroot/bf0.net/runtime/template/pcmbv4.5,gook,novelsearch,topindex.php),[function] => include),[13] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/controller.php,[line] => 92,[function] => fetch,[class] => PT_View,[type] => ->,[args] => Array ([0] => topindex,[1] => ,[2] => )),[14] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/controller.php,[line] => 33,[function] => fetch,[class] => PT_Controller,[type] => ->,[args] => Array ([0] => topindex,[1] => ,[2] => )),[15] => Array ([file] => /www/wwwroot/bf0.net/application/novelsearch/controller/index.php,[line] => 28,[function] => display,[class] => PT_Controller,[type] => ->,[args] => Array ([0] => topindex)),[16] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/pt.php,[line] => 91,[function] => topAction,[class] => indexController,[type] => ->,[args] => Array ()),[17] => Array ([file] => /www/wwwroot/bf0.net/ptcms/core/pt.php,[line] => 33,[function] => app,[class] => pt,[type] => ->,[args] => Array ()),[18] => Array ([file] => /www/wwwroot/bf0.net/ptcms/ptcms.php,[line] => 170,[function] => start,[class] => pt,[type] => ->,[args] => Array ()),[19] => Array ([file] => /www/wwwroot/bf0.net/index.php,[line] => 20,[args] => Array ([0] => /www/wwwroot/bf0.net/ptcms/ptcms.php),[function] => include)),[] => ,[errorInfo] => ))
    
    文件加载
    /www/wwwroot/bf0.net/index.php
    /www/wwwroot/bf0.net/ptcms/ptcms.php
    /www/wwwroot/bf0.net/ptcms/function.php
    /www/wwwroot/bf0.net/ptcms/core/base.php
    /www/wwwroot/bf0.net/ptcms/core/pt.php
    /www/wwwroot/bf0.net/ptcms/core/config.php
    /www/wwwroot/bf0.net/application/common/config.php
    /www/wwwroot/bf0.net/ptcms/core/plugin.php
    /www/wwwroot/bf0.net/ptcms/core/request.php
    /www/wwwroot/bf0.net/ptcms/core/dispatcher.php
    /www/wwwroot/bf0.net/application/common/function.php
    /www/wwwroot/bf0.net/application/novelsearch/controller/index.php
    /www/wwwroot/bf0.net/application/common/controller/common.php
    /www/wwwroot/bf0.net/ptcms/core/controller.php
    /www/wwwroot/bf0.net/application/user/model/user.php
    /www/wwwroot/bf0.net/ptcms/core/model.php
    /www/wwwroot/bf0.net/ptcms/core/cookie.php
    /www/wwwroot/bf0.net/ptcms/core/view.php
    /www/wwwroot/bf0.net/template/pcmbv4.5/config.php
    /www/wwwroot/bf0.net/application/cron/model/cron.php
    /www/wwwroot/bf0.net/ptcms/core/cache.php
    /www/wwwroot/bf0.net/ptcms/driver/cache/memcache.php
    /www/wwwroot/bf0.net/ptcms/core/log.php
    /www/wwwroot/bf0.net/ptcms/library/http.php
    /www/wwwroot/bf0.net/ptcms/core/response.php
    /www/wwwroot/bf0.net/ptcms/driver/view/mc.php
    /www/wwwroot/bf0.net/application/common/plugin/cleartitle/cleartitle.php
    /www/wwwroot/bf0.net/runtime/template/pcmbv4.5,gook,novelsearch,topindex.php
    /www/wwwroot/bf0.net/runtime/template/parsetpl/1620cc56ef130dbf6db643f12ff6a341.php
    /www/wwwroot/bf0.net/runtime/template/parsetpl/7865a60d7f988fa90dfd34e6e8da3222.php
    /www/wwwroot/bf0.net/runtime/template/parsetpl/de0cd7b017e3a44c5b724a94ef067c58.php
    /www/wwwroot/bf0.net/ptcms/core/block.php
    /www/wwwroot/bf0.net/ptcms/core/input.php
    /www/wwwroot/bf0.net/ptcms/core/filter.php
    /www/wwwroot/bf0.net/application/novelsearch/block/novellist.php
    /www/wwwroot/bf0.net/application/novelsearch/model/novelsearch_info.php
    /www/wwwroot/bf0.net/ptcms/core/db.php
    /www/wwwroot/bf0.net/ptcms/driver/db/mysql/dao.php
    /www/wwwroot/bf0.net/ptcms/driver/db/dao.php
    /www/wwwroot/bf0.net/ptcms/driver/db/mysql/pdo.php
    /www/wwwroot/bf0.net/ptcms/error.tpl