[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...', 'xxyngszx', 'mMHYGw3d7CyFh2sG', [0, 2, 0, ...]) in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2026
  4. at Connection->initConnect(false) in Connection.php line 644
  5. at Connection->query('SHOW COLUMNS FROM `w...', [], false, true) in Mysql.php line 90
  6. at Mysql->getFields('woo_article') in Connection.php line 377
  7. at Connection->getTableInfo('woo_article', 'bind') in Connection.php line 454
  8. at Connection->getFieldsBind('woo_article') in Builder.php line 292
  9. at Builder->buildWhere(object(WooQuery), ['AND' => [['is_verify', '=', 1], ['menu_id', 'like', ['%,143,%', '%,186,%', '%,133,%'], ...]]]) in Builder.php line 264
  10. at Builder->parseWhere(object(WooQuery), ['AND' => [['is_verify', '=', 1], ['menu_id', 'like', ['%,143,%', '%,186,%', '%,133,%'], ...]]]) in Builder.php line 991
  11. at Builder->select(object(WooQuery)) in Connection.php line 1281
  12. at Connection->value(object(WooQuery), 'COUNT(*) AS tp_count', 0, false) in Connection.php line 1327
  13. at Connection->aggregate(object(WooQuery), 'COUNT', '*') in Query.php line 623
  14. at Query->aggregate('COUNT', '*', true) in Query.php line 658
  15. at Query->count() in Query.php line 1784
  16. at Query->paginate(0, false, []) in WooCURD.php line 148
  17. at WooModel->getPageList(['where' => [['is_verify', '=', 1], ['menu_id', 'like', ['%,143,%', '%,186,%', '%,133,%'], ...]], 'order' => ['date' => 'DESC', 'list_order' => 'DESC', 'id' => 'DESC'], 'field' => ['id'], ...]) in WooHome.php line 151
  18. at WooHome->show()
  19. at call_user_func(['parent', 'show']) in Article.php line 36
  20. at Article->show()
  21. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 404
  22. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['menu_id' => 143, 'convert' => false]) in Module.php line 132
  23. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  24. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  25. at Middleware->think\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  27. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  28. at Module->exec() in Dispatch.php line 168
  29. at Dispatch->run() in App.php line 432
  30. at App->think\{closure}(object(Request), object(Closure), null)
  31. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  32. at Middleware->think\{closure}(object(Request))
  33. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  34. at Middleware->dispatch(object(Request)) in App.php line 435
  35. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "last_menu_id": "143" }
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-316c784b-b571-4864-9ee5-693f6d96f432
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\xx.yngszx.com\xx.yngszx.com.config
APP_POOL_ID xx.yngszx.com
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME LDCLOUDA19319
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f01
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
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME LDCLOUDA19319$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
windows_tracing_flags 3
windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO /index.php/news.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/7.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.zgqy.com.cn
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\xxyngszxcom\public\index.php
REQUEST_URI /news.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 43814
REMOTE_HOST 3.90.242.249
REMOTE_ADDR 3.90.242.249
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\xxyngszxcom\public\index.php\news.html
PATH_INFO /news.html
LOGON_USER
LOCAL_ADDR 103.47.82.77
INSTANCE_META_PATH /LM/W3SVC/18
INSTANCE_NAME XX.YNGSZX.COM
INSTANCE_ID 18
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\xxyngszxcom\public
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\wwwroot\xxyngszxcom\public\
APPL_MD_PATH /LM/W3SVC/18/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /news.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /news.html
HTTP_USER_AGENT claudebot
HTTP_HOST www.zgqy.com.cn
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/news.html
REQUEST_TIME_FLOAT 1711639661.4854
REQUEST_TIME 1711639661
Environment Variablesempty
ThinkPHP Constants
DS \
ROOT_PATH D:\wwwroot\xxyngszxcom\
APP_PATH D:\wwwroot\xxyngszxcom\app\
WWW_ROOT D:\wwwroot\xxyngszxcom\public\
WOO_PATH D:\wwwroot\xxyngszxcom\woo\
ADDONS_PATH D:\wwwroot\xxyngszxcom\addons\
APP_CACHE_DIR D:\wwwroot\xxyngszxcom\data\cache\
SMARTY_DIR D:\wwwroot\xxyngszxcom\include\smarty-3.1.27\libs\
SMARTY_SYSPLUGINS_DIR D:\wwwroot\xxyngszxcom\include\smarty-3.1.27\libs\sysplugins\
SMARTY_PLUGINS_DIR D:\wwwroot\xxyngszxcom\include\smarty-3.1.27\libs\plugins\
SMARTY_MBSTRING true
SMARTY_RESOURCE_CHAR_SET UTF-8
SMARTY_RESOURCE_DATE_FORMAT %b %e, %Y
SMARTY_SPL_AUTOLOAD 0