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

SQLSTATE[HY000] [1040] Too many connections

  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 290
  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 Index.php line 25
  13. at Index->__construct()
  14. at ReflectionClass->newInstanceArgs() in Container.php line 395
  15. at Container->invokeClass() in Container.php line 252
  16. at Container->make() in Controller.php line 187
  17. at Controller->controller() in Controller.php line 74
  18. at Controller->exec() in Dispatch.php line 90
  19. at Dispatch->run() in Route.php line 785
  20. at Route->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Pipeline.php line 66
  22. at Pipeline->then() in Route.php line 786
  23. at Route->dispatch() in Http.php line 216
  24. at Http->dispatchToRoute() in Http.php line 206
  25. at Http->think\{closure}() in Pipeline.php line 59
  26. at Pipeline->think\{closure}() in MultiApp.php line 71
  27. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  28. at Pipeline->think\{closure}() in Auth.php line 30
  29. at Auth->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in Install.php line 20
  33. at Install->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in MultiApp.php line 72
  38. at MultiApp->handle()
  39. at call_user_func() in Middleware.php line 142
  40. at Middleware->think\{closure}() in Pipeline.php line 85
  41. at Pipeline->think\{closure}() in SessionInit.php line 67
  42. at SessionInit->handle()
  43. at call_user_func() in Middleware.php line 142
  44. at Middleware->think\{closure}() in Pipeline.php line 85
  45. at Pipeline->think\{closure}() in TraceDebug.php line 71
  46. at TraceDebug->handle()
  47. at call_user_func() in Middleware.php line 142
  48. at Middleware->think\{closure}() in Pipeline.php line 85
  49. at Pipeline->think\{closure}() in Pipeline.php line 66
  50. at Pipeline->then() in Http.php line 207
  51. at Http->runWithRequest() in Http.php line 170
  52. at Http->run() in index.php line 36

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1040
Driver Error Message Too many connections
Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [1040] Too many connections
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database piliang_chengman
hostport 3306
dsn
params []
charset utf8mb4
prefix cms_
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
debug false

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.xtrfj.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME piliang.chengmang.com
SERVER_PORT 80
SERVER_ADDR 10.0.4.17
REMOTE_PORT 45402
REMOTE_ADDR 35.175.212.5
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/piliang.chengmang.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/piliang.chengmang.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711663594.4385
REQUEST_TIME 1711663594
0.069183s