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

SQLSTATE[HY000] [2002] Connection refused

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

Call Stack

  1. in PDOConnection.php line 836
  2. at PDOConnection->getPDOStatement() in Mysql.php line 68
  3. at Mysql->getFields() in PDOConnection.php line 438
  4. at PDOConnection->getTableFieldsInfo() in PDOConnection.php line 376
  5. at PDOConnection->getSchemaInfo() in PDOConnection.php line 424
  6. at PDOConnection->getTableInfo() in PDOConnection.php line 513
  7. at PDOConnection->getFieldsType() in TableFieldInfo.php line 60
  8. at Query->getFieldsType() in TableFieldInfo.php line 72
  9. at Query->getFieldType()
  10. at call_user_func_array() in Model.php line 1068
  11. at Model->__call() in TimeStamp.php line 82
  12. at Model->checkTimeFieldType() in TimeStamp.php line 62
  13. at Model->isAutoWriteTimestamp() in ModelService.php line 35
  14. at ModelService->think\service\{closure}()
  15. at call_user_func() in Model.php line 252
  16. at Model->__construct() in BaseModel.php line 15
  17. at BaseModel->__construct() in Article.php line 22
  18. at Article->__construct() in Article.php line 28
  19. at Article->__construct()
  20. at ReflectionClass->newInstanceArgs() in Container.php line 396
  21. at Container->invokeClass() in Container.php line 253
  22. at Container->make() in Controller.php line 187
  23. at Controller->controller() in Controller.php line 74
  24. at Controller->exec() in Dispatch.php line 52
  25. at Dispatch->run() in Route.php line 755
  26. at Route->think\{closure}() in Pipeline.php line 59
  27. at Pipeline->think\{closure}() in Pipeline.php line 66
  28. at Pipeline->then() in Route.php line 756
  29. at Route->dispatch() in Http.php line 208
  30. at Http->dispatchToRoute() in Http.php line 198
  31. at Http->think\{closure}() in Pipeline.php line 59
  32. at Pipeline->think\{closure}() in MultiApp.php line 51
  33. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  34. at Pipeline->think\{closure}() in SessionInit.php line 58
  35. at SessionInit->handle()
  36. at call_user_func() in Middleware.php line 134
  37. at Middleware->think\{closure}() in Pipeline.php line 85
  38. at Pipeline->think\{closure}() in LoadLangPack.php line 53
  39. at LoadLangPack->handle()
  40. at call_user_func() in Middleware.php line 134
  41. at Middleware->think\{closure}() in Pipeline.php line 85
  42. at Pipeline->think\{closure}() in Pipeline.php line 66
  43. at Pipeline->then() in MultiApp.php line 52
  44. at MultiApp->handle()
  45. at call_user_func() in Middleware.php line 134
  46. at Middleware->think\{closure}() in Pipeline.php line 85
  47. at Pipeline->think\{closure}() in Install.php line 19
  48. at Install->handle()
  49. at call_user_func() in Middleware.php line 134
  50. at Middleware->think\{closure}() in Pipeline.php line 85
  51. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  52. at AllowCrossDomain->handle()
  53. at call_user_func() in Middleware.php line 134
  54. at Middleware->think\{closure}() in Pipeline.php line 85
  55. at Pipeline->think\{closure}() in SessionInit.php line 58
  56. at SessionInit->handle()
  57. at call_user_func() in Middleware.php line 134
  58. at Middleware->think\{closure}() in Pipeline.php line 85
  59. at Pipeline->think\{closure}() in Pipeline.php line 66
  60. at Pipeline->then() in Http.php line 199
  61. at Http->runWithRequest() in Http.php line 162
  62. at Http->run() in index.php line 29

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 2002
Driver Error Message Connection refused
Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [2002] Connection refused
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database dazhe5
hostport 3306
dsn
params []
charset utf8mb4
prefix rh_
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/dazhe/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 220.181.108.76
HTTP_CLIENT_IP 220.181.108.76
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html
HTTP_SEC_CH_UA_MOBILE ?0
HTTP_SEC_CH_UA " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"
HTTP_REFERER http://www.baidu.com/search/spider.html
HTTP_ORIGIN http://www.baidu.com/search/spider.html
HTTP_ACCEPT */*
HTTP_HOST www.dazhe5.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dazhe5.cn
SERVER_PORT 443
SERVER_ADDR 172.17.0.74
REMOTE_PORT 49972
REMOTE_ADDR 59.47.232.78
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/dazhe/public
DOCUMENT_URI /index.php
REQUEST_URI /en/12868.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/en/12868.html
SCRIPT_FILENAME /www/wwwroot/dazhe/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731688020.8623
REQUEST_TIME 1731688020