9570官方金沙-www.9570.com|登录入口

[1040] PDOException in Connection.php line 295

SQLSTATE[HY000] [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('mysql:host=localhost...', 'hbzlgs_cn', 'f5KErcLrpa5kT6aT', [0, 2, 0, ...]) in Connection.php line 295
  3. at Connection->connect() in Connection.php line 995
  4. at Connection->initConnect(false) in Connection.php line 348
  5. at Connection->query('SHOW COLUMNS FROM `s...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('seo') in Query.php line 1921
  7. at Query->getTableInfo('seo', 'pk') in Query.php line 1955
  8. at Query->getPk(['table' => 'seo', 'where' => [], 'field' => '*', ...]) in Query.php line 2639
  9. at Query->find() in Index.php line 14
  10. at Index->__construct()
  11. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  12. at App::invokeClass('app\index\controller...') in Loader.php line 479
  13. at Loader::controller('index', 'controller', false, 'Error') in App.php line 581
  14. at App::module(['index', 'index', 'press'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  15. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'press']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/home/wwwroot/hbzlgs...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
6ptfvffuq54h26l0juf6jo3km0
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.hbzlgs.cn
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=6ptfvffuq54h26l0juf6jo3km0
PATH
/sbin:/usr/sbin:/bin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
Apache Server at www.hbzlgs.cn Port 80
SERVER_SOFTWARE
Apache
SERVER_NAME
www.hbzlgs.cn
SERVER_ADDR
211.149.212.192
SERVER_PORT
80
REMOTE_ADDR
104.206.93.26
DOCUMENT_ROOT
/www/wwwroot/hbzlgscn
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/hbzlgscn
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/hbzlgscn/index.php
REMOTE_PORT
33504
REDIRECT_URL
/index/index/press.html
REDIRECT_QUERY_STRING
s=/index/index/press.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/index/index/press.html
REQUEST_URI
/index/index/press.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1719571874.9993
REQUEST_TIME
1719571874
PATH_INFO
/index/index/press.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/hbzlgscn/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1719571874.9998
THINK_START_MEM
238568
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/hbzlgscn/thinkphp/
LIB_PATH
/home/wwwroot/hbzlgscn/thinkphp/library/
CORE_PATH
/home/wwwroot/hbzlgscn/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/hbzlgscn/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/hbzlgscn/
EXTEND_PATH
/home/wwwroot/hbzlgscn/extend/
VENDOR_PATH
/home/wwwroot/hbzlgscn/vendor/
RUNTIME_PATH
/home/wwwroot/hbzlgscn/runtime/
LOG_PATH
/home/wwwroot/hbzlgscn/runtime/log/
CACHE_PATH
/home/wwwroot/hbzlgscn/runtime/cache/
TEMP_PATH
/home/wwwroot/hbzlgscn/runtime/temp/
CONF_PATH
/home/wwwroot/hbzlgscn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false