#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 PDOConnection.php line 745
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 923
  4. at PDOConnection->find() in BaseQuery.php line 1361
  5. at BaseQuery->find() in route.php line 124
  6. at Config->{closure}() in Container.php line 295
  7. at Container->invokeFunction() in Container.php line 359
  8. at Container->invoke() in Callback.php line 27
  9. at Callback->exec() in Dispatch.php line 52
  10. at Dispatch->run() in Route.php line 755
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 756
  14. at Route->dispatch() in Http.php line 208
  15. at Http->dispatchToRoute() in Http.php line 198
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 51
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in MultiApp.php line 52
  21. at MultiApp->handle()
  22. at call_user_func() in Middleware.php line 134
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 58
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in Pipeline.php line 66
  29. at Pipeline->then() in Http.php line 199
  30. at Http->runWithRequest() in Http.php line 162
  31. at Http->run() in index.php line 25

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

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 8.217.199.247
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 220.181.57.216,8.217.199.247
HTTP_CLIENT_IP 220.181.57.216
HTTP_REFERER http://www.baidu.com/search/spider.html
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH_INFO
HTTP_HOST www.16757.com
REDIRECT_STATUS 200
SERVER_NAME www.16757.com
SERVER_PORT 443
SERVER_ADDR 61.160.195.130
REMOTE_PORT 37840
REMOTE_ADDR 111.173.80.27
SERVER_SOFTWARE nginx/1.26.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.16757.com/public
DOCUMENT_URI /index.php
REQUEST_URI //so/SybaseToadv8.0.0.10%E6%B1%89%E5%8C%96%E7%89%88(%E8%A7%A3%E5%86%B3%E6%8F%90%E7%A4%BA%E8%BF%87%E6%9C%9F%E9%97%AE%E9%A2%98).rar.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/so/SybaseToadv8.0.0.10%E6%B1%89%E5%8C%96%E7%89%88(%E8%A7%A3%E5%86%B3%E6%8F%90%E7%A4%BA%E8%BF%87%E6%9C%9F%E9%97%AE%E9%A2%98).rar.html
SCRIPT_FILENAME /www/wwwroot/www.16757.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1729576894.804
REQUEST_TIME 1729576894