金沙客户端登录|首页-下载



[1040] PDOException in Connection.php line 526

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 526
  2. at PDO->__construct("mysql:host=127.0.0.1...", "newxuanyi", "Wwj*2018", [0, 2, 0, ...]) in Connection.php line 526
  3. at Connection->connect() in Connection.php line 1993
  4. at Connection->initConnect(false) in Connection.php line 642
  5. at Connection->query("SHOW COLUMNS FROM `n...", [], false, true) in Mysql.php line 90
  6. at Mysql->getFields("`nbcms_site`") in Connection.php line 375
  7. at Connection->getTableInfo("nbcms_site", "pk") in Connection.php line 412
  8. at Connection->getPk("nbcms_site") in Query.php line 2383
  9. at Query->getPk(["where" => ["AND" => [["identity", "=", "www"], ["type", "=", 0]]], "cache" => ["key" => "site_identity_type_w...", "expire" => null, "tag" => null], "table" => "nbcms_site", ...]) in Connection.php line 791
  10. at Connection->find(object(Query)) in Query.php line 3041
  11. at Query->find() in Base.php line 381
  12. at Base->checkSite("www", "pc") in Base.php line 53
  13. at Base->__construct() in Index.php line 10
  14. at Index->__construct()
  15. at ReflectionClass->newInstanceArgs([]) in Container.php line 417
  16. at Container->invokeClass("app\client\controlle...", []) in Container.php line 262
  17. at Container->make("app\client\controlle...") in Container.php line 494
  18. at Container->__get("app\client\controlle...") in App.php line 715
  19. at App->controller("index", "controller", false, "Error") in Module.php line 93
  20. at Module->exec() in Dispatch.php line 167
  21. at Dispatch->run() in App.php line 431
  22. at App->think\{closure}(object(Request), object(Closure), null)
  23. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 188
  24. at Middleware->think\{closure}(object(Request))
  25. at call_user_func(object(Closure), object(Request)) in Middleware.php line 133
  26. at Middleware->dispatch(object(Request)) in App.php line 434
  27. at App->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /algs/110802.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /algs/110802.html
REMOTE_PORT 28069
SCRIPT_FILENAME /www/wwwroot/gzxy.com.cn/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/gzxy.com.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/gzxy.com.cn/public
REMOTE_ADDR 119.23.123.176
SERVER_PORT 80
SERVER_ADDR 172.18.44.7
SERVER_NAME www.gzxy.com.cn
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
Apache Server at www.gzxy.com.cn Port 80
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_ALICDN_DA_VIA 61.184.215.188,113.96.58.122
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_X_CLIENT_SCHEME http
HTTP_X_FORWARDED_FOR 45.150.128.154
HTTP_ALI_SWIFT_STAT_HOST www.gzxy.com.cn
HTTP_ALI_SWIFT_LOG_HOST www.gzxy.com.cn
HTTP_ALI_CDN_REAL_IP 45.150.128.154
HTTP_ALI_CDN_REAL_PORT 49559
HTTP_EAGLEEYE_TRACEID 3db8d72515862448783118222e
HTTP_VIA cn556.l1, l2st4-5.l2
HTTP_HOST www.gzxy.com.cn
proxy-nokeepalive 1
REDIRECT_STATUS 200
REDIRECT_PATH_INFO algs/110802.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1586244878.3454
REQUEST_TIME 1586244878
Environment Variablesempty
ThinkPHP Constantsempty