[1226] PDOException in Connection.php line 287

SQLSTATE[HY000] [1226] User 'auth_f' has exceeded the 'max_user_connections' resource (current value: 100)

  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 287
  2. at PDO->__construct('mysql:dbname=auth;ho...', 'auth_f', 'gafahetas0219', [0, 2, 0, ...]) in Connection.php line 287
  3. at Connection->connect() in Connection.php line 897
  4. at Connection->initConnect(false) in Connection.php line 344
  5. at Connection->query('SELECT * FROM `zxcms...', ['where_status' => [1, 1]], false, false) in Query.php line 226
  6. at Query->query('SELECT * FROM `zxcms...', ['where_status' => [1, 1]], false, false) in Query.php line 2285
  7. at Query->select() in Index.php line 11
  8. at Index->index()
  9. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 224
  10. at App::invokeMethod([object(Index), 'index'], []) in App.php line 389
  11. at App::module(['index', 'index', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  12. at App::run() in start.php line 18
  13. at require('/www/users/US351904/...') in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID XtvVm38AAAEAACwjJZUAAAAD
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID XtvVm38AAAEAACwjJZUAAAAD
REDIRECT_HANDLER application/x-httpd-php5
REDIRECT_STATUS 200
UNIQUE_ID XtvVm38AAAEAACwjJZUAAAAD
HTTP_HOST www.richkem.com
HTTP_USER_AGENT GuzzleHttp/6.5.3 curl/7.69.1 PHP/7.4.5
HTTP_TIMEOUT 10
HTTP_HTTP_ERRORS
HTTP_VERIFY
PATH /usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.richkem.com
SERVER_ADDR 107.151.181.65
SERVER_PORT 80
REMOTE_ADDR 113.220.62.13
DOCUMENT_ROOT /www/users/US351904/WEB
SERVER_ADMIN vhost@zzidc.com
SCRIPT_FILENAME /www/users/US351904/WEB/index.php
REMOTE_PORT 7919
REDIRECT_URL /index.php/index/index/index.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /index/index/index.html
SCRIPT_NAME /index.php
PATH_INFO /index/index/index.html
PATH_TRANSLATED /www/users/US351904/WEB/index/index/index.html
ORIG_PATH_INFO /index.php/index/index/index.html
ORIG_SCRIPT_NAME /php54-cgi
ORIG_SCRIPT_FILENAME /usr/local/zend/php5.4/bin/php-cgi
ORIG_PATH_TRANSLATED /www/users/US351904/WEB/index.php/index/index/index.html
PHP_SELF /index.php/index/index/index.html
REQUEST_TIME_FLOAT 1591465371.2627
REQUEST_TIME 1591465371
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/users/US351904/WEB/application/
THINK_VERSION 5.0.5
THINK_START_TIME 1591465371.2639
THINK_START_MEM 137792
EXT .php
DS /
THINK_PATH /www/users/US351904/WEB/thinkphp/
LIB_PATH /www/users/US351904/WEB/thinkphp/library/
CORE_PATH /www/users/US351904/WEB/thinkphp/library/think/
TRAIT_PATH /www/users/US351904/WEB/thinkphp/library/traits/
ROOT_PATH /www/users/US351904/WEB/
EXTEND_PATH /www/users/US351904/WEB/extend/
VENDOR_PATH /www/users/US351904/WEB/vendor/
RUNTIME_PATH /www/users/US351904/WEB/runtime/
LOG_PATH /www/users/US351904/WEB/runtime/log/
CACHE_PATH /www/users/US351904/WEB/runtime/cache/
TEMP_PATH /www/users/US351904/WEB/runtime/temp/
CONF_PATH /www/users/US351904/WEB/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false