#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 459
  7. at PDOConnection->getPk() in Query.php line 291
  8. at Query->getPk() in WhereQuery.php line 442
  9. at BaseQuery->whereEq() in WhereQuery.php line 422
  10. at BaseQuery->parseWhereItem() in WhereQuery.php line 386
  11. at BaseQuery->parseWhereExp() in WhereQuery.php line 41
  12. at BaseQuery->where() in CheckDomain.php line 75
  13. at CheckDomain->handle()
  14. at call_user_func() in Middleware.php line 142
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in TraceDebug.php line 71
  17. at TraceDebug->handle()
  18. at call_user_func() in Middleware.php line 142
  19. at Middleware->think\{closure}() in Pipeline.php line 85
  20. at Pipeline->think\{closure}() in Pipeline.php line 66
  21. at Pipeline->then() in Http.php line 207
  22. at Http->runWithRequest() in Http.php line 170
  23. at Http->run() in index.php line 47

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 bcjzly888
hostport 3306
dsn
params []
charset utf8mb4
prefix
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 Data
s /zhzx/list_9_988.html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER https://dongtongxin.com/zhzx/list_9_988.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.dongtongxin.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dongtongxin.com
SERVER_PORT 443
SERVER_ADDR 45.158.228.125
REMOTE_PORT 54368
REMOTE_ADDR 35.172.193.238
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/fa888
DOCUMENT_URI /index.php
REQUEST_URI /zhzx/list_9_988.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/zhzx/list_9_988.html
SCRIPT_FILENAME /www/wwwroot/fa888/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711649192.7484
REQUEST_TIME 1711649192