#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() in Mysql.php line 66
  3. at Mysql->getFields() in PDOConnection.php line 422
  4. at PDOConnection->getTableFieldsInfo() in PDOConnection.php line 362
  5. at PDOConnection->getSchemaInfo() in PDOConnection.php line 409
  6. at PDOConnection->getTableInfo() in PDOConnection.php line 493
  7. at PDOConnection->getFieldsType() in TableFieldInfo.php line 58
  8. at Query->getFieldsType() in TableFieldInfo.php line 69
  9. at Query->getFieldType()
  10. at call_user_func_array() in Model.php line 1045
  11. at Model->__call() in TimeStamp.php line 73
  12. at Model->checkTimeFieldType() in TimeStamp.php line 54
  13. at Model->isAutoWriteTimestamp() in ModelService.php line 35
  14. at ModelService->think\service\{closure}()
  15. at call_user_func() in Model.php line 242
  16. at Model->__construct() in Model.php line 1054
  17. at Model::__callStatic() in Index.php line 14
  18. at Index->index()
  19. at ReflectionMethod->invokeArgs() in Container.php line 344
  20. at Container->invokeReflectMethod() in Controller.php line 110
  21. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in Pipeline.php line 66
  23. at Pipeline->then() in Controller.php line 113
  24. at Controller->exec() in Dispatch.php line 90
  25. at Dispatch->run() in Route.php line 785
  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 786
  29. at Route->dispatch() in Http.php line 216
  30. at Http->dispatchToRoute() in Http.php line 206
  31. at Http->think\{closure}() in Pipeline.php line 59
  32. at Pipeline->think\{closure}() in MultiApp.php line 71
  33. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  34. at Pipeline->think\{closure}() in Pipeline.php line 66
  35. at Pipeline->then() in MultiApp.php line 72
  36. at MultiApp->handle()
  37. at call_user_func() in Middleware.php line 142
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in TraceDebug.php line 71
  40. at TraceDebug->handle()
  41. at call_user_func() in Middleware.php line 142
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in Pipeline.php line 66
  44. at Pipeline->then() in Http.php line 207
  45. at Http->runWithRequest() in Http.php line 170
  46. at Http->run() in index.php line 20

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 biaoqingbao
hostport 3306
dsn
params []
charset utf8
prefix bqb_
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 []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.37yzy.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
PHP_ADMIN_VALUE open_basedir=/home/wwwroot/:/tmp/:/proc/
REDIRECT_STATUS 200
SERVER_NAME www.37yzy.com
SERVER_PORT 80
SERVER_ADDR 172.19.161.145
REMOTE_PORT 35976
REMOTE_ADDR 44.222.249.19
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/wwwroot/www.37yzy.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /home/wwwroot/www.37yzy.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT 1711654368.103
REQUEST_TIME 1711654368
0.042505s