[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=127.0.0.1...', '06988_icu', 'cMZakXR7LbkNK8GS', [true, 2, 2, ...]) 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 `m...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`mac_vod`') in Query.php line 1921
  7. at Query->getTableInfo('mac_vod', 'pk') in Query.php line 1955
  8. at Query->getPk(['order' => [object(Expression)], 'limit' => '1', 'table' => 'mac_vod', ...]) in Query.php line 2639
  9. at Query->find() in MyError.php line 127
  10. at MyError->abc() in MyError.php line 89
  11. at MyError->_empty()
  12. at ReflectionMethod->invokeArgs(object(MyError), []) in App.php line 343
  13. at App::invokeMethod([object(MyError), '_empty'], ['index']) in App.php line 611
  14. at App::module([null, 'MyError', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => [null, 'MyError', 'index'], 'convert' => false], ['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('/www/wwwroot/MACCMS/...') in index.php line 40

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

_d_id
cf9a055cd67872f5a30978f093e6c1
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
_d_id=cf9a055cd67872f5a30978f093e6c1
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.010jiu.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; SeekportBot; +https://bot.seekport.com)
PATH_INFO
/0jiu/9824930.html
REDIRECT_STATUS
200
SERVER_NAME
06988.icu
SERVER_PORT
443
SERVER_ADDR
156.250.187.194
REMOTE_PORT
39902
REMOTE_ADDR
104.140.76.106
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/MACCMS
DOCUMENT_URI
/index.php
REQUEST_URI
/0jiu/9824930.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/0jiu/9824930.html
SCRIPT_FILENAME
/www/wwwroot/MACCMS/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1706274049.4591
REQUEST_TIME
1706274049
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/MACCMS/
APP_PATH
/www/wwwroot/MACCMS/application/
MAC_COMM
/www/wwwroot/MACCMS/application/common/common/
MAC_HOME_COMM
/www/wwwroot/MACCMS/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/MACCMS/application/admin/common/
MAC_START_TIME
1706274049.4595
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1706274049.4596
THINK_START_MEM
395624
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/MACCMS/thinkphp/
LIB_PATH
/www/wwwroot/MACCMS/thinkphp/library/
CORE_PATH
/www/wwwroot/MACCMS/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/MACCMS/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/MACCMS/extend/
VENDOR_PATH
/www/wwwroot/MACCMS/vendor/
RUNTIME_PATH
/www/wwwroot/MACCMS/runtime/
LOG_PATH
/www/wwwroot/MACCMS/runtime/log/
CACHE_PATH
/www/wwwroot/MACCMS/runtime/cache/
CACHE_PATH1
RUNTIME_PATH1cache1/
TEMP_PATH
/www/wwwroot/MACCMS/runtime/temp/
CONF_PATH
/www/wwwroot/MACCMS/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/MACCMS/addons/
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/www/wwwroot/MACCMS/template/conch/html/
MAC_PATH_TEMPLATE
/template/conch/
MAC_PATH_TPL
/template/conch/html/
MAC_PATH_ADS
/template/conch/0jiu/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/www/wwwroot/MACCMS/addons/
MAC_ADDON_PATH_STATIC
/www/wwwroot/MACCMS/static/addons/

ju111net九州体育_九州体育手机登录【官方入口】