[1203] PDOException in Connection.php line 300

SQLSTATE[HY000] [1203] User bdm721866268 already has more than 'max_user_connections' active 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 300
  2. at PDO->__construct('mysql:dbname=bdm7218...', 'bdm721866268', 'Cshy123456', [0, 2, 0, ...]) in Connection.php line 300
  3. at Connection->connect() in Connection.php line 934
  4. at Connection->initConnect(true) in Mysql.php line 54
  5. at Mysql->getFields('tp_conf') in Query.php line 1722
  6. at Query->getTableInfo('tp_conf', 'pk') in Query.php line 1756
  7. at Query->getPk(['field' => ['value'], 'multi' => ['AND' => ['ename' => ['temp']]], 'where' => ['AND' => ['ename' => 'temp']], ...]) in Query.php line 2400
  8. at Query->find() in Common.php line 71
  9. at Common->getTemp() in Common.php line 9
  10. at Common->_initialize() in Controller.php line 56
  11. at Controller->__construct(object(Request))
  12. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 243
  13. at App::invokeClass('app\index\controller...') in Loader.php line 418
  14. at Loader::controller('article', 'controller', false, 'Error') in App.php line 371
  15. at App::module([null, 'article', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  16. at App::run() in start.php line 18
  17. at require('/data/user/myfolder/...') in index.php line 10

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER nobody
HOME /
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /data/user/htdocs/index.php
PATH_INFO /article/453.html
QUERY_STRING s=/article/453.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /article/453.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /data/user/htdocs
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 18.117.172.189
REMOTE_PORT 4463
SERVER_ADDR 10.21.232.236
SERVER_PORT 443
SERVER_NAME moutil.com
REDIRECT_STATUS 200
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST moutil.com
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1732214977.9019
REQUEST_TIME 1732214977
Environment Variablesempty
ThinkPHP Constants
APP_PATH ../myfolder/application/
BIND_MODULE index
THINK_VERSION 5.0.6
THINK_START_TIME 1732214977.902
THINK_START_MEM 224824
EXT .php
DS /
THINK_PATH /data/user/myfolder/inc/
LIB_PATH /data/user/myfolder/inc/library/
CORE_PATH /data/user/myfolder/inc/library/think/
TRAIT_PATH /data/user/myfolder/inc/library/traits/
ROOT_PATH /data/user/myfolder/
EXTEND_PATH /data/user/myfolder/extend/
VENDOR_PATH /data/user/myfolder/vendor/
RUNTIME_PATH /data/user/myfolder/runtime/
LOG_PATH /data/user/myfolder/runtime/log/
CACHE_PATH /data/user/myfolder/runtime/cache/
TEMP_PATH /data/user/myfolder/runtime/temp/
CONF_PATH ../myfolder/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
url /article/453.html
ref
ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
site http://wap.few82.com/
road ?road=moutil.com/article/453.html
memes ?road=moutil.com/article/453.html&referer=
regs @BaiduSpider|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