??

[1040] PDOException in Connection.php line 295

SQLSTATE[08004] [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=10.111.11...', 'yuanyuan', '!@#www.0734zpw.COM$%...', [0, 2, 0, ...]) 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 `e...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`eacoo_config`') in Query.php line 1921
  7. at Query->getTableInfo('eacoo_config', 'type') in Query.php line 1969
  8. at Query->getFieldsType('eacoo_config') in Query.php line 1975
  9. at Query->getFieldsBind('eacoo_config') in Builder.php line 270
  10. at Builder->buildWhere(['AND' => ['status' => ['eq', 1]]], ['multi' => ['AND' => ['status' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 1]]], 'field' => ['name', 'value', 'type'], ...]) in Builder.php line 240
  11. at Builder->parseWhere(['AND' => ['status' => ['eq', 1]]], ['multi' => ['AND' => ['status' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 1]]], 'field' => ['name', 'value', 'type'], ...]) in Builder.php line 719
  12. at Builder->select(['multi' => ['AND' => ['status' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 1]]], 'field' => ['name', 'value', 'type'], ...]) in Query.php line 2511
  13. at Query->select() in Config.php line 25
  14. at Config::lists() in Config.php line 129
  15. at Config->run(['type' => 'module', 'module' => ['home', 'Index', 'newsdetail']], null) in Hook.php line 137
  16. at Hook::exec('app\common\behavior\...', 'app_begin', ['type' => 'module', 'module' => ['home', 'Index', 'newsdetail']], null) in Hook.php line 95
  17. at Hook::listen('app_begin', ['type' => 'module', 'module' => ['home', 'Index', 'newsdetail']]) in App.php line 130
  18. at App::run() in start.php line 19
  19. at require('/home/wwwroot/EacooP...') in index.php line 45

Environment Variables

GET Data

id
38282
POST Data
empty
Files
empty

Cookies

PHPSESSID
oouoeqas9fe60rb2pb3c6qi65d
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.dreamobi.com
HTTP_X_FORWARDED_FOR
55.143.192.52
HTTP_CLIENT_IP
55.143.192.52
HTTP_COOKIE
PHPSESSID=oouoeqas9fe60rb2pb3c6qi65d
HTTP_USER_AGENT
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
HTTP_ACCEPT_LANGUAGE
zh-cn
HTTP_REFERER
http://www.dreamobi.com/News/ShowNewsID38282.html
HTTP_ACCEPT
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
PHP_ADMIN_VALUE
open_basedir=/home/wwwroot/:/tmp/:/proc/
REDIRECT_STATUS
200
SERVER_NAME
dreamobi.com
SERVER_PORT
80
SERVER_ADDR
59.51.114.80
REMOTE_PORT
58134
REMOTE_ADDR
172.252.15.130
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public
DOCUMENT_URI
/index.php/home/Index/newsdetail
REQUEST_URI
/News/ShowNewsID38282.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
application/x-www-form-urlencoded
REQUEST_METHOD
GET
QUERY_STRING
id=38282
SCRIPT_FILENAME
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/index.php
PATH_TRANSLATED
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/home/Index/newsdetail
PATH_INFO
/home/Index/newsdetail
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/home/Index/newsdetail
REQUEST_TIME_FLOAT
1615331504.9068
REQUEST_TIME
1615331504
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/../apps/
PUBLIC_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/
THEME_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/themes/
MODULE_MARK
front
BASE_PATH
THINK_VERSION
5.0.24
THINK_START_TIME
1615331504.9075
THINK_START_MEM
421448
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/thinkphp/
LIB_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/thinkphp/library/
CORE_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/
EXTEND_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/extend/
VENDOR_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/vendor/
RUNTIME_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/runtime/
LOG_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/runtime/log/
CACHE_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/runtime/cache/
TEMP_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/runtime/temp/
CONF_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PUBLIC_RELATIVE_PATH
PLUGIN_PATH
/home/wwwroot/EacooPHP-v1.2.3-20180311_www/plugins/
SERVER_SOFTWARE_TYPE
nginx
EACOOPHP_V
1.2.3
BUILD_VERSION
201803051301
MODULE_NAME
home
IS_MOBILE
false
CURRENT_THEME
default
0.044388s
Baidu