/>

[1040]PDOExceptioninConnection.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. inConnection.php line 295
  2. atPDO->__construct('mysql:host=211.149.1...', '114pifa', '3D4ZS52r3pLJZKmf', [0, 2, 0, ...]) inConnection.php line 295
  3. atConnection->connect() inConnection.php line 995
  4. atConnection->initConnect(false) inConnection.php line 348
  5. atConnection->query('SHOW COLUMNS FROM `c...', [],false,true) inMysql.php line 65
  6. atMysql->getFields('`cpb_13`') inQuery.php line 1921
  7. atQuery->getTableInfo('cpb_13', 'pk') inQuery.php line 1955
  8. atQuery->getPk(['alias' => ['cpb_13' => 'a'], 'join' => [[['dp_bizuser' => 'b'], 'INNER', 'a.username=b.usernam...']], 'multi' => ['AND' => ['a.cpid' => ['10636857']]], ...]) inQuery.php line 2639
  9. atQuery->find() inIndex.php line 123
  10. atIndex->view()
  11. atReflectionMethod->invokeArgs(object(Index), []) inApp.php line 343
  12. atApp::invokeMethod([object(Index), 'view'], []) inApp.php line 611
  13. atApp::module([null, 'index', 'view'], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...],false) inApp.php line 456
  14. atApp::exec(['type' => 'module', 'module' => [null, 'index', 'view'], 'convert' =>false], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...]) inApp.php line 139
  15. atApp::run() instart.php line 19
  16. at require('/home/www/wwwroot/fa...') inindex.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
HTTP_CONNECTION
close
HTTP_HOST
m.modinstall.com
PATH_INFO
/p3023/10636857.html
REDIRECT_STATUS
200
SERVER_NAME
114pifa.com
SERVER_PORT
80
SERVER_ADDR
60.247.152.235
REMOTE_PORT
33634
REMOTE_ADDR
23.90.23.154
SERVER_SOFTWARE
nginx/1.21.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/www/wwwroot/fastadmin.114pifa.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/p3023/10636857.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/p3023/10636857.html
SCRIPT_FILENAME
/www/wwwroot/fastadmin.114pifa.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1666681147.2864
REQUEST_TIME
1666681147
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/wwwroot/fastadmin.114pifa.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1666681147.287
THINK_START_MEM
368272
EXT
.php
DS
/
THINK_PATH
/home/www/wwwroot/fastadmin.114pifa.com/thinkphp/
LIB_PATH
/home/www/wwwroot/fastadmin.114pifa.com/thinkphp/library/
CORE_PATH
/home/www/wwwroot/fastadmin.114pifa.com/thinkphp/library/think/
TRAIT_PATH
/home/www/wwwroot/fastadmin.114pifa.com/thinkphp/library/traits/
ROOT_PATH
/home/www/wwwroot/fastadmin.114pifa.com/
EXTEND_PATH
/home/www/wwwroot/fastadmin.114pifa.com/extend/
VENDOR_PATH
/home/www/wwwroot/fastadmin.114pifa.com/vendor/
RUNTIME_PATH
/home/www/wwwroot/fastadmin.114pifa.com/runtime/
LOG_PATH
/home/www/wwwroot/fastadmin.114pifa.com/runtime/log/
CACHE_PATH
/home/www/wwwroot/fastadmin.114pifa.com/runtime/cache/
TEMP_PATH
/home/www/wwwroot/fastadmin.114pifa.com/runtime/temp/
CONF_PATH
/home/www/wwwroot/fastadmin.114pifa.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/home/www/wwwroot/fastadmin.114pifa.com/addons/