[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_type`') in Query.php line 1921
  7. at Query->getTableInfo('mac_type', 'type') in Query.php line 1969
  8. at Query->getFieldsType('mac_type') in Query.php line 1975
  9. at Query->getFieldsBind('mac_type') in Builder.php line 270
  10. at Builder->buildWhere(['AND' => ['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]]], ['multi' => ['AND' => ['type_mid' => [['eq', 1]], 'type_pid' => [['eq', 0]], 'type_status' => [['eq', 1]]]], 'where' => ['AND' => ['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]]], 'order' => ['type_pid asc', 'type_sort asc'], ...]) in Builder.php line 240
  11. at Builder->parseWhere(['AND' => ['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]]], ['multi' => ['AND' => ['type_mid' => [['eq', 1]], 'type_pid' => [['eq', 0]], 'type_status' => [['eq', 1]]]], 'where' => ['AND' => ['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]]], 'order' => ['type_pid asc', 'type_sort asc'], ...]) in Builder.php line 720
  12. at Builder->select(['multi' => ['AND' => ['type_mid' => [['eq', 1]], 'type_pid' => [['eq', 0]], 'type_status' => [['eq', 1]]]], 'where' => ['AND' => ['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]]], 'order' => ['type_pid asc', 'type_sort asc'], ...]) in Query.php line 2511
  13. at Query->select() in Type.php line 47
  14. at Type->listData(['type_mid' => ['eq', 1], 'type_pid' => ['eq', 0], 'type_status' => ['eq', 1]], 'type_pid asc,type_so...', 'def', null, 7, 0, 0) in Type.php line 200
  15. at Type->listCacheData(['num' => '7', 'order' => 'asc', 'flag' => 'vod', ...]) in b4286a0f329a6c0307c4264bda0fbe45.php line 194
  16. at include('/www/wwwroot/MACCMS/...') in File.php line 53
  17. at File->read('/www/wwwroot/MACCMS/...', ['maccms' => ['showmb' => '0', 'bendici' => '0', 'zbt' => '', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => 1, 'ajax' => 0, 'tid' => 0, ...], ...]) in Template.php line 193
  18. at Template->fetch('template/conch/html/...', ['maccms' => ['showmb' => '0', 'bendici' => '0', 'zbt' => '', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => 1, 'ajax' => 0, 'tid' => 0, ...], ...], []) in Think.php line 86
  19. at Think->fetch('template/conch/html/...', ['maccms' => ['showmb' => '0', 'bendici' => '0', 'zbt' => '', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => 1, 'ajax' => 0, 'tid' => 0, ...], ...], []) in View.php line 163
  20. at View->fetch('vod/detail', ['maccms' => ['showmb' => '0', 'bendici' => '0', 'zbt' => '', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => 1, 'ajax' => 0, 'tid' => 0, ...], ...], ['__ROOT__' => '', '__URL__' => '/index/vod', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  21. at Controller->fetch('vod/detail') in All.php line 64
  22. at All->label_fetch('vod/detail') in Vod.php line 63
  23. at Vod->detail()
  24. at ReflectionMethod->invokeArgs(object(Vod), []) in App.php line 343
  25. at App::invokeMethod([object(Vod), 'detail'], []) in App.php line 611
  26. at App::module([null, 'vod', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  27. at App::exec(['type' => 'module', 'module' => [null, 'vod', 'detail'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  28. at App::run() in start.php line 19
  29. 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
/voddetail/womendefanyiguan.html
REDIRECT_STATUS
200
SERVER_NAME
06988.icu
SERVER_PORT
443
SERVER_ADDR
156.250.187.194
REMOTE_PORT
44338
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
/voddetail/womendefanyiguan.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/voddetail/womendefanyiguan.html
SCRIPT_FILENAME
/www/wwwroot/MACCMS/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1706274569.299
REQUEST_TIME
1706274569
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
1706274569.2996
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1706274569.2998
THINK_START_MEM
395720
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九州体育_九州体育手机登录【官方入口】