#0 [10501]PDOException in PDOConnection.php line 797

SQLSTATE[HY000] [2002] Connection refused

  1. }
  2. } else {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  6. }
  7. }
  8. if ($e instanceof \PDOException) {
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } else {
  11. throw $e;
  12. }
  13. }
  14. }
  15. /**
  16. * 执行语句
  17. * @access protected

Call Stack

  1. in PDOConnection.php line 797
  2. at PDOConnection->getPDOStatement('SHOW FULL COLUMNS FR...') in Mysql.php line 66
  3. at Mysql->getFields('`qf_conf`') in PDOConnection.php line 422
  4. at PDOConnection->getTableFieldsInfo('qf_conf') in PDOConnection.php line 362
  5. at PDOConnection->getSchemaInfo('qf_conf') in PDOConnection.php line 409
  6. at PDOConnection->getTableInfo('qf_conf', 'type') in PDOConnection.php line 493
  7. at PDOConnection->getFieldsType('qf_conf') in TableFieldInfo.php line 58
  8. at Query->getFieldsType() in TableFieldInfo.php line 69
  9. at Query->getFieldType('create_time')
  10. at call_user_func_array([object(Query), 'getFieldType'], ['create_time']) in Model.php line 1049
  11. at Model->__call('getFieldType', ['create_time']) in TimeStamp.php line 73
  12. at Model->checkTimeFieldType(true) in TimeStamp.php line 54
  13. at Model->isAutoWriteTimestamp(true) in ModelService.php line 35
  14. at ModelService->think\service\{closure}(object(Conf))
  15. at call_user_func(object(Closure), object(Conf)) in Model.php line 242
  16. at Model->__construct() in QfShop.php line 39
  17. at QfShop->initialize() in QfShop.php line 33
  18. at QfShop->__construct(object(App)) in Index.php line 38
  19. at Index->__construct(object(App))
  20. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 395
  21. at Container->invokeClass('app\index\controller...', []) in Container.php line 252
  22. at Container->make('app\index\controller...', [], true) in Controller.php line 187
  23. at Controller->controller('Index') in Controller.php line 74
  24. at Controller->exec() in Dispatch.php line 80
  25. at Dispatch->run() in Route.php line 793
  26. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  27. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  28. at Pipeline->then(object(Closure)) in Route.php line 794
  29. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  30. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  31. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  32. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 51
  33. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  34. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  35. at Pipeline->then(object(Closure)) in MultiApp.php line 52
  36. at MultiApp->handle(object(Request), object(Closure))
  37. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  38. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  39. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  40. at SessionInit->handle(object(Request), object(Closure))
  41. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  42. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  43. at Pipeline->think\{closure}(object(Request)) in AllowCrossDomain.php line 61
  44. at AllowCrossDomain->handle(object(Request), object(Closure))
  45. at call_user_func([object(AllowCrossDomain), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  46. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  47. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  48. at TraceDebug->handle(object(Request), object(Closure))
  49. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  50. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  51. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  52. at Pipeline->then(object(Closure)) in Http.php line 207
  53. at Http->runWithRequest(object(Request)) in Http.php line 170
  54. at Http->run() in index.php line 40

Exception Datas

Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [2002] Connection refused
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database toolsdb
hostport 3306
dsn
params []
charset utf8mb4
prefix qf_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache false
trigger_sql true
builder
query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/shiguangzhinan/xinyue-search-main/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONTENT_TYPE application/x-www-form-urlencoded
HTTP_CONTENT_LENGTH 0
HTTP_X_FORWARDED_HOST rt.http3.lol
HTTP_ACCEPT */*
HTTP_VIA 2.0 Caddy
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED_FOR 216.73.217.86
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING identity
HTTP_HOST jusoys.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.shiguangzhinan.com
SERVER_PORT 443
SERVER_ADDR 10.0.12.5
REMOTE_PORT 27756
REMOTE_ADDR 23.137.249.165
SERVER_SOFTWARE nginx/1.30.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/shiguangzhinan/xinyue-search-main/public
DOCUMENT_URI /index.php
REQUEST_URI /site/292
SCRIPT_NAME /index.php
CONTENT_LENGTH 0
CONTENT_TYPE application/x-www-form-urlencoded
REQUEST_METHOD GET
QUERY_STRING s=/site/292
SCRIPT_FILENAME /www/wwwroot/shiguangzhinan/xinyue-search-main/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1781423619.499
REQUEST_TIME 1781423619