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

SQLSTATE[HY000] [2002] Connection refused

  1. return $this->PDOStatement;
  2. } catch (\Throwable | \Exception $e) {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  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. * @access protected

Call Stack

  1. in PDOConnection.php line 768
  2. at PDOConnection->getPDOStatement() in Mysql.php line 66
  3. at Mysql->getFields() in PDOConnection.php line 396
  4. at PDOConnection->getTableFieldsInfo() in PDOConnection.php line 336
  5. at PDOConnection->getSchemaInfo() in PDOConnection.php line 383
  6. at PDOConnection->getTableInfo() in PDOConnection.php line 467
  7. at PDOConnection->getFieldsType() in TableFieldInfo.php line 58
  8. at Query->getFieldsType() in TableFieldInfo.php line 81
  9. at Query->getFieldsBindType() in Builder.php line 328
  10. at Builder->buildWhere() in Builder.php line 299
  11. at Builder->parseWhere() in Mysql.php line 94
  12. at Mysql->select() in PDOConnection.php line 842
  13. at PDOConnection->think\db\{closure}() in PDOConnection.php line 678
  14. at PDOConnection->pdoQuery() in PDOConnection.php line 843
  15. at PDOConnection->find() in BaseQuery.php line 1127
  16. at BaseQuery->find() in Anlidetail.php line 21
  17. at Anlidetail->index()
  18. at ReflectionMethod->invokeArgs() in Container.php line 343
  19. at Container->invokeReflectMethod() in Controller.php line 110
  20. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Pipeline.php line 66
  22. at Pipeline->then() in Controller.php line 113
  23. at Controller->exec() in Dispatch.php line 89
  24. at Dispatch->run() in Route.php line 772
  25. at Route->think\{closure}() in Pipeline.php line 59
  26. at Pipeline->think\{closure}() in Pipeline.php line 66
  27. at Pipeline->then() in Route.php line 773
  28. at Route->dispatch() in Http.php line 216
  29. at Http->dispatchToRoute() in Http.php line 206
  30. at Http->think\{closure}() in Pipeline.php line 59
  31. at Pipeline->think\{closure}() in MultiApp.php line 71
  32. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in MultiApp.php line 72
  35. at MultiApp->handle()
  36. at call_user_func() in Middleware.php line 142
  37. at Middleware->think\{closure}() in Pipeline.php line 85
  38. at Pipeline->think\{closure}() in SessionInit.php line 67
  39. at SessionInit->handle()
  40. at call_user_func() in Middleware.php line 142
  41. at Middleware->think\{closure}() in Pipeline.php line 85
  42. at Pipeline->think\{closure}() in TraceDebug.php line 71
  43. at TraceDebug->handle()
  44. at call_user_func() in Middleware.php line 142
  45. at Middleware->think\{closure}() in Pipeline.php line 85
  46. at Pipeline->think\{closure}() in Pipeline.php line 66
  47. at Pipeline->then() in Http.php line 207
  48. at Http->runWithRequest() in Http.php line 170
  49. at Http->run() in index.php line 37

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 xfz3_tywl88_com
hostport 3306
dsn
params []
charset utf8
prefix pcf_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache false
trigger_sql false
builder
query
break_reconnect false
break_match_str []
schema_cache_path /www/wwwroot/xfz3.tywl88.com/runtime/schema/

Environment Variables

GET Data
seoarea 476
dizhi zhugongxiang
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 182.88.253.164
HTTP_CLIENT_IP 182.88.253.164
HTTP_USER_AGENT Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
HTTP_ACCEPT_LANGUAGE zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3
HTTP_PRAGMA no-cache
HTTP_ACCEPT text/html, application/xhtml+xml, */*
HTTP_CONNECTION Keep-Alive
HTTP_REFERER https://s0.wp.com/mshots/v1/
HTTP_HOST tywl88.com
PATH_INFO /anlidetail
REDIRECT_STATUS 200
SERVER_NAME xfz3.tywl88.com
SERVER_PORT 80
SERVER_ADDR 192.168.0.237
REMOTE_PORT 56662
REMOTE_ADDR 110.41.4.233
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/xfz3.tywl88.com/public
DOCUMENT_URI /index.php/anlidetail
REQUEST_URI /index.php/anlidetail?seoarea=476&dizhi=zhugongxiang
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING seoarea=476&dizhi=zhugongxiang
SCRIPT_FILENAME /www/wwwroot/xfz3.tywl88.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/anlidetail
REQUEST_TIME_FLOAT 1698474218.8415
REQUEST_TIME 1698474218
0.259321s