[1040] PDOException in Connection.php line 528

SQLSTATE[HY000] [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('mysql:host=127.0.0.1...', 'hope_db_user', 'H0pe@2337877!', [0, 2, 0, ...]) in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2024
  4. at Connection->initConnect(false) in Connection.php line 644
  5. at Connection->query('SELECT `urlname`,`ur...', ['ThinkBind_1_1914326648_' => [1, 1], 'ThinkBind_2_37196183_' => [3, 1]], false, false) in Connection.php line 923
  6. at Connection->select(object(Query)) in Query.php line 3028
  7. at Query->select() in common.php line 49
  8. at getNavList() in a670c3bcb9460b7786495ee706b1a986.php line 57
  9. at include('D:\wwwroot\ahxxjj.co...') in File.php line 59
  10. at File->read('D:\wwwroot\ahxxjj.co...', ['city' => null, 'urlname' => null, 'cityName' => '', ...]) in Template.php line 226
  11. at Template->fetch('D:\wwwroot\ahxxjj.co...', ['city' => null, 'urlname' => null, 'cityName' => '', ...], []) in Think.php line 93
  12. at Think->fetch('D:\wwwroot\ahxxjj.co...', ['city' => null, 'urlname' => null, 'cityName' => '', ...], []) in View.php line 192
  13. at View->fetch('', ['city' => null, 'urlname' => null, 'cityName' => '', ...], [], false) in View.php line 42
  14. at View->output('') in Response.php line 396
  15. at Response->getContent() in Response.php line 128
  16. at Response->send() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-5AMNB83RBMV
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
USERDOMAIN WORKGROUP
USERNAME WIN-5AMNB83RBMV$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 54.235.6.60
HTTP_X_REAL_IP 54.235.6.60
HTTP_HOST www.ahxxjj.com
REDIRECT_STATUS 200
SERVER_NAME 127.0.0.1
SERVER_PORT 8023
SERVER_ADDR 192.168.0.24
REMOTE_PORT 61447
REMOTE_ADDR 192.168.0.9
SERVER_SOFTWARE nginx/1.15.11
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT D:/wwwroot/ahxxjj.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index.html
PATH_TRANSLATED D:/wwwroot/ahxxjj.com/public
PATH_INFO
SCRIPT_FILENAME D:/wwwroot/ahxxjj.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710857016.278
REQUEST_TIME 1710857016
Environment Variablesempty
ThinkPHP Constants
DS \
APP_PATH D:\wwwroot\ahxxjj.com\public/../application/
CONF_PATH D:\wwwroot\ahxxjj.com\public/../config/
PUBILC_PATH D:\wwwroot\ahxxjj.com\public/
ROOT_PATH D:\wwwroot\ahxxjj.com\public
CACHE_PATH D:\wwwroot\ahxxjj.com\public/../runtime/
CONFIG_PATH D:\wwwroot\ahxxjj.com\public/../config/
UPLOAD_PATH uploads