系统发生错误

LEHU乐虎

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() 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 998
  11. at Builder->select() in Connection.php line 908
  12. at Connection->select() in Query.php line 3028
  13. at Query->select() in ArticleCate.php line 121
  14. at ArticleCate::getTree() in ArticleCate.php line 460
  15. at ArticleCate::getNavListsBySiteId() in Base.php line 36
  16. at Base->initialize() in Content.php line 31
  17. at Content->initialize() in Controller.php line 68
  18. at Controller->__construct()
  19. at ReflectionClass->newInstanceArgs() in Container.php line 439
  20. at Container->invokeClass() in Container.php line 284
  21. at Container->make() in App.php line 725
  22. at App->controller() in Module.php line 94
  23. at Module->exec() in Dispatch.php line 168
  24. at Dispatch->run() in App.php line 432
  25. at App->think\{closure}()
  26. at call_user_func_array() in Middleware.php line 185
  27. at Middleware->think\{closure}()
  28. at call_user_func() in Middleware.php line 130
  29. at Middleware->dispatch() in App.php line 435
  30. at App->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
_vstime 1752850218
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE _vstime=1752850218
HTTP_REFERER /
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.yzxywl.net/search/spider.html)
HTTP_HOST www.befar.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.befar.com
SERVER_PORT 443
SERVER_ADDR 192.168.254.2
REMOTE_PORT 45532
REMOTE_ADDR 192.168.100.253
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/cn/public
DOCUMENT_URI /index.php
REQUEST_URI /News/442/20123834.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/News/442/20123834.html
SCRIPT_FILENAME /www/wwwroot/cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1752821419.6053
REQUEST_TIME 1752821419
Environment Variablesempty
ThinkPHP Constants
TEMP_HTML_PATH ./html/
url /News/442/20123834.html
ref /
ent Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.yzxywl.net/search/spider.html)
site http://www.gxyyds.com/?
road app?domain=www.befar.com&path=/News/442/20123834.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.www.yzxywl.net%2Fsearch%2Fspider.html%29
memes app?domain=www.befar.com&path=/News/442/20123834.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.www.yzxywl.net%2Fsearch%2Fspider.html%29&referer=https%3A%2F%2Fwww.befar.com%2F
regs @Baidu|Sogou|Yisou|Haosou|360Spider@i
mobile /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area false
【网站地图】