[1040] PDOException in Connection.php line 295

SQLSTATE[08004] [1040] Too many connections

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

Call Stack

  1. in Connection.php line 295
  2. at PDO->__construct() in Connection.php line 295
  3. at Connection->connect() in Connection.php line 995
  4. at Connection->initConnect() in Connection.php line 348
  5. at Connection->query()
  6. at call_user_func_array() in Db.php line 178
  7. at Db::__callStatic() in common.php line 74
  8. at getbofangyuan() in MyError.php line 87
  9. at MyError->generateContent() in MyError.php line 385
  10. at MyError->_empty()
  11. at ReflectionMethod->invokeArgs() in App.php line 343
  12. at App::invokeMethod() in App.php line 613
  13. at App::module() in App.php line 456
  14. at App::exec() in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/home/www/wwwroot/fa...') in index.php line 126

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
HTTP_HOST
www.9393zg.com
PATH_INFO
/rO0m3bgZY.html
REDIRECT_STATUS
200
SERVER_NAME
9393zg.com
SERVER_PORT
443
SERVER_ADDR
38.6.135.209
REMOTE_PORT
63564
REMOTE_ADDR
216.73.216.65
SERVER_SOFTWARE
nginx/1.26.3
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/www/wwwroot/fanmulu666.com
DOCUMENT_URI
/index.php
REQUEST_URI
/rO0m3bgZY.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/rO0m3bgZY.html
SCRIPT_FILENAME
/home/www/wwwroot/fanmulu666.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1752425243.6251
REQUEST_TIME
1752425243
_error_handled
true
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/home/www/wwwroot/fanmulu666.com/
APP_PATH
/home/www/wwwroot/fanmulu666.com/application/
MAC_COMM
/home/www/wwwroot/fanmulu666.com/application/common/common/
MAC_HOME_COMM
/home/www/wwwroot/fanmulu666.com/application/index/common/
MAC_ADMIN_COMM
/home/www/wwwroot/fanmulu666.com/application/admin/common/
MAC_START_TIME
1752425243.6257
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1752425243.6259
THINK_START_MEM
359488
EXT
.php
EXTTXT
.txt
MACLINE
verifymac
DS
/
THINK_PATH
/home/www/wwwroot/fanmulu666.com/thinkphp/
LIB_PATH
/home/www/wwwroot/fanmulu666.com/thinkphp/library/
CORE_PATH
/home/www/wwwroot/fanmulu666.com/thinkphp/library/think/
TRAIT_PATH
/home/www/wwwroot/fanmulu666.com/thinkphp/library/traits/
MACERRORF
error
EXTEND_PATH
/home/www/wwwroot/fanmulu666.com/extend/
VENDOR_PATH
/home/www/wwwroot/fanmulu666.com/vendor/
RUNTIME_PATH
/home/www/wwwroot/fanmulu666.com/runtime/
LOG_PATH
/home/www/wwwroot/fanmulu666.com/runtime/log/
CACHE_PATH
/home/www/wwwroot/fanmulu666.com/runtime/cache/
TEMP_PATH
/home/www/wwwroot/fanmulu666.com/runtime/temp/
CONF_PATH
/home/www/wwwroot/fanmulu666.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/home/www/wwwroot/fanmulu666.com/addons/
MAX_CACHE_ITEMS
1000
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/home/www/wwwroot/fanmulu666.com/template/ZY012/html/
MAC_PATH_TEMPLATE
/template/ZY012/
MAC_PATH_TPL
/template/ZY012/html/
MAC_PATH_ADS
/template/ZY012/ads/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/home/www/wwwroot/fanmulu666.com/addons/
MAC_ADDON_PATH_STATIC
/home/www/wwwroot/fanmulu666.com/static/addons/