|
[1040] PDOException in Connection.php line 295
SQLSTATE[HY000] [1040] Too many connections
- $this->fetchType = $config['result_type'];
- }
- try {
- if (empty($config['dsn'])) {
- $config['dsn' = $this->parseDsn($config);
- }
- if ($config['debug']) {
- $startTime = microtime(true);
- }
- $this->links[$linkNum = new PDO($config['dsn'], $config['username'], $config['password'], $params);
- if ($config['debug']) {
- // 记录数据库连接信息
- Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
- }
- } catch (\PDOException $e) {
- if ($autoConnection) {
- Log::record($e->getMessage(), 'error');
- return $this->connect($autoConnection, $linkNum);
- } else {
Call Stack- in Connection.php line 295
- at PDO->__construct('mysql:host=172.18.0....', 'admin', 'sDd8ao6Gij2H3sdHo5iH...', [0, 2, 0, ...]) in Connection.php line 295
- at Connection->connect() in Connection.php line 995
- at Connection->initConnect(false) in Connection.php line 348
- at Connection->query('SHOW COLUMNS FROM `m...', [], false, true) in Mysql.php line 65
- at Mysql->getFields('member') in Query.php line 1921
- at Query->getTableInfo('member', 'type') in Query.php line 1969
- at Query->getFieldsType('member') in Query.php line 1975
- at Query->getFieldsBind('member') in Builder.php line 270
- at Builder->buildWhere(['AND' => ['status' => 2, 'id' => 23631]], ['table' => 'member', 'multi' => ['AND' => ['status' => [2], 'id' => [23631]]], 'where' => ['AND' => ['status' => 2, 'id' => 23631]], ...]) in Builder.php line 240
- at Builder->parseWhere(['AND' => ['status' => 2, 'id' => 23631]], ['table' => 'member', 'multi' => ['AND' => ['status' => [2], 'id' => [23631]]], 'where' => ['AND' => ['status' => 2, 'id' => 23631]], ...]) in Builder.php line 719
- at Builder->select(['table' => 'member', 'multi' => ['AND' => ['status' => [2], 'id' => [23631]]], 'where' => ['AND' => ['status' => 2, 'id' => 23631]], ...]) in Query.php line 2462
- at Query->getPdo() in Query.php line 441
- at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 576
- at Query->aggregate('COUNT', '*', true) in Query.php line 551
- at Query->count() in common.php line 606
- at DecodeUserInfo('ZXlKcFpDSTZNak0yTXpF...') in UserCtrl.php line 78
- at UserCtrl->DecodeUserInfo('ZXlKcFpDSTZNak0yTXpF...') in UserCtrl.php line 28
- at UserCtrl->__construct()
- at ReflectionClass->newInstanceArgs([]) in App.php line 359
- at App::invokeClass('app\index\controller...') in Loader.php line 479
- at Loader::controller('index', 'controller', false, 'Error') in App.php line 581
- at App::module(['index', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
- at App::exec(['type' => 'module', 'module' => ['index', 'index', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
- at App::run() in start.php line 19
- at require('/data0/www/2898/v3.3...') in index.php line 21
Environment Variables GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty
Server/Request Data USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data0/www/2898/v3.3.3/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/data0/www/2898/v3.3.3/public
SERVER_PROTOCOL
HTTP/1.0
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.1
REMOTE_ADDR
43.248.188.38
REMOTE_PORT
56190
SERVER_ADDR
172.18.0.101
SERVER_PORT
33664
SERVER_NAME
2898.com
REDIRECT_STATUS
200
PHP_ADMIN_VALUE
open_basedir=/data0/www/2898/v3.3.3/public/:/tmp/:/proc/:/data0/www/2898/
HTTP_HOST
www.2898.com
HTTP_X_REAL_IP
192.0.0.1
HTTP_X_FORWARDED_FOR
[size=11.6667px]192.0.0.1
HTTP_REMOTE_HOST
[size=11.6667px]192.0.0.1
HTTP_CONNECTION
close
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
HTTP_ACCEPT_ENCODING
gzip, deflate, br
HTTP_UPGRADE_INSECURE_REQUESTS
1
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1604890349.7434
REQUEST_TIME
1604890349
Environment Variables
empty
ThinkPHP Constants APP_PATH
/data0/www/2898/v3.3.3/public/../application/
CONF_PATH
/data0/www/2898/v3.3.3/public/../conf/
APP_STATE
dev
THINK_VERSION
5.0.24
THINK_START_TIME
1604890349.7446
THINK_START_MEM
263672
EXT
.php
DS
/
THINK_PATH
/data0/www/2898/v3.3.3/thinkphp/
LIB_PATH
/data0/www/2898/v3.3.3/thinkphp/library/
CORE_PATH
/data0/www/2898/v3.3.3/thinkphp/library/think/
TRAIT_PATH
/data0/www/2898/v3.3.3/thinkphp/library/traits/
ROOT_PATH
/data0/www/2898/v3.3.3/
EXTEND_PATH
/data0/www/2898/v3.3.3/extend/
VENDOR_PATH
/data0/www/2898/v3.3.3/vendor/
RUNTIME_PATH
/data0/www/2898/v3.3.3/runtime/
LOG_PATH
/data0/www/2898/v3.3.3/runtime/log/
CACHE_PATH
/data0/www/2898/v3.3.3/runtime/cache/
TEMP_PATH
/data0/www/2898/v3.3.3/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
CONTROLLER_NAME
index
MODULE_NAME
index
ACTION_NAME
index
ThinkPHP V5.0.24 { 十年磨一剑-为API开发设计的高性能框架 }
|
|