[1040] PDOException in Connection.php line 528

SQLSTATE[08004] [1040] Too many connections

  1. try {
  2. if (empty($config['dsn'])) {
  3. $config['dsn'] = $this->parseDsn($config);
  4. }
  5. if ($config['debug']) {
  6. $startTime = microtime(true);
  7. }
  8. $this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
  9. if ($config['debug']) {
  10. // 记录数据库连接信息
  11. $this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
  12. }
  13. return $this->links[$linkNum];
  14. } catch (\PDOException $e) {
  15. if ($autoConnection) {

Call Stack

  1. in Connection.php line 528
  2. at PDO->__construct() in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2024
  4. at Connection->initConnect() in Connection.php line 644
  5. at Connection->query() in Mysql.php line 90
  6. at Mysql->getFields() in Connection.php line 377
  7. at Connection->getTableInfo() in Connection.php line 454
  8. at Connection->getFieldsBind() in Builder.php line 292
  9. at Builder->buildWhere() in Builder.php line 264
  10. at Builder->parseWhere() in Builder.php line 997
  11. at Builder->select() in Connection.php line 1370
  12. at Connection->column() in Query.php line 608
  13. at Query->column() in InitHookBehavior.php line 37
  14. at InitHookBehavior->run()
  15. at ReflectionMethod->invokeArgs() in Container.php line 373
  16. at Container->invokeMethod() in Container.php line 411
  17. at Container->invoke() in Hook.php line 208
  18. at Hook->execTag() in Hook.php line 149
  19. at Hook->listen() in App.php line 280
  20. at App->initialize() in App.php line 427
  21. at App->run() in index.php line 32

Environment Variables

GET Data
s /member_detail
id 3048
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.artsc.gov.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.artsc.gov.cn
SERVER_PORT 80
SERVER_ADDR 182.131.21.25
REMOTE_PORT 55380
REMOTE_ADDR 3.234.253.152
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/back/home/web/www_scwyy_cn/public_html/public
DOCUMENT_URI /index.php
REQUEST_URI /member_detail?id=3048
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/member_detail&id=3048
SCRIPT_FILENAME /home/back/home/web/www_scwyy_cn/public_html/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711713651.8333
REQUEST_TIME 1711713651
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT /home/back/home/web/www_scwyy_cn/public_html/
CMF_DATA /home/back/home/web/www_scwyy_cn/public_html/data/
APP_PATH /home/back/home/web/www_scwyy_cn/public_html/app/
WEB_ROOT /home/back/home/web/www_scwyy_cn/public_html/public/
HTMLPURIFIER_PREFIX /home/back/home/web/www_scwyy_cn/public_html/vendor/ezyang/htmlpurifier/library
0.148887s