Uncaught error with message '[db.WindConnection.init] SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
/var/www/bbs/wind/db/WindConnection.php: 115
- 110: * 返回数据库链接对象
- 111: *
- 112: * @return AbstractWindPdoAdapter
- 113: */
- 114: public function getDbHandle() {
- 115: $this->init();
- 116: return $this->_dbHandle;
- 117: }
- 118:
- 119: /**
__Stack:
- #23 /var/www/bbs/wind/db/WindConnection.php (115) init()
- #22 /var/www/bbs/wind/db/WindSqlStatement.php (297) getDbHandle()
- #21 ~Internal Location~ (N/A) setQueryString("SELECT * FROM pw_bbs_forum WHERE fid=?")
- #20 /var/www/bbs/wind/filter/WindHandlerInterceptorChain.php (62) call_user_func_array(array(
'0' => NULL,
'1' => 'setQueryString',
),array(
'0' => 'SELECT * FROM pw_bbs_forum WHERE fid=?',
))
- #19 ~Internal Location~ (N/A) handle("SELECT * FROM pw_bbs_forum WHERE fid=?")
- #18 /var/www/bbs/wind/filter/WindEnhancedListener.php (54) call_user_func_array(array(
'0' => NULL,
'1' => 'handle',
),array(
'0' => 'SELECT * FROM pw_bbs_forum WHERE fid=?',
))
- #17 ~Internal Location~ (N/A) handle("setQueryString",WindSqlStatement,"SELECT * FROM pw_bbs_forum WHERE fid=?")
- #16 /var/www/bbs/wind/filter/proxy/WindEnhancedClassProxy.php (101) call_user_func_array(array(
'0' => NULL,
'1' => 'handle',
),array(
'0' => 'setQueryString',
'1' => NULL,
'2' => 'SELECT * FROM pw_bbs_forum WHERE fid=?',
))
- #15 /var/www/bbs/wind/db/WindConnection.php (105) __call("setQueryString",array(
'0' => 'SELECT * FROM pw_bbs_forum WHERE fid=?',
))
- #14 /var/www/bbs/wind/db/WindConnection.php (105) setQueryString("SELECT * FROM pw_bbs_forum WHERE fid=?")
- #13 /var/www/bbs/src/library/base/PwBaseDao.php (234) createStatement("SELECT * FROM pw_bbs_forum WHERE fid=?")
- #12 /var/www/bbs/src/service/forum/dao/PwForumDao.php (20) _get("6")
- #11 /var/www/bbs/src/service/forum/PwForum.php (30) getForum("6")
- #10 /var/www/bbs/src/library/route/PwRoute.php (373) getForum("6")
- #09 /var/www/bbs/src/library/route/PwRoute.php (57) _matchPath("thread-6?tab=digest")
- #08 /var/www/bbs/wind/router/route/AbstractWindRoute.php (41) match(WindHttpRequest)
- #07 ~Internal Location~ (N/A) preHandle(WindHttpRequest)
- #06 /var/www/bbs/wind/filter/WindHandlerInterceptor.php (59) call_user_func_array(array(
'0' => NULL,
'1' => 'preHandle',
),array(
'0' => NULL,
))
- #05 /var/www/bbs/wind/router/WindRouter.php (50) handle(WindHttpRequest)
- #04 /var/www/bbs/wind/base/AbstractWindFrontController.php (202) route(WindHttpRequest)
- #03 /var/www/bbs/wind/web/WindWebFrontController.php (20) run()
- #02 /var/www/bbs/src/wekit.php (38) run()
- #01 /var/www/bbs/index.php (5) run("phpwind")
The server encountered an internal error and failed to process your request.
Please try again later. If this error is temporary, reloading the page might resolve the problem.
If you are able to contact the administrator report this error message.(http://www.windframework.com/)