??

[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.saranphon.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_modules`') in Query.php line 1921
  7. at Query->getTableInfo('eacoo_modules', 'type') in Query.php line 1969
  8. at Query->getFieldsType('eacoo_modules') in Query.php line 1975
  9. at Query->getFieldsBind('eacoo_modules') in Builder.php line 270
  10. at Builder->buildWhere(['AND' => ['status' => 1]], ['multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], 'field' => ['name'], ...]) in Builder.php line 240
  11. at Builder->parseWhere(['AND' => ['status' => 1]], ['multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], 'field' => ['name'], ...]) in Builder.php line 719
  12. at Builder->select(['multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], 'field' => ['name'], ...]) in Query.php line 2462
  13. at Query->getPdo() in Query.php line 491
  14. at Query->column('name') in InitApp.php line 25
  15. at InitApp->run(null, null) in Hook.php line 137
  16. at Hook::exec('app\common\behavior\...', 'app_init', null, null) in Hook.php line 95
  17. at Hook::listen('app_init') in App.php line 223
  18. at App::initCommon() in App.php line 82
  19. at App::run() in start.php line 19
  20. at require('/home/wwwroot/EacooP...') in index.php line 45

Environment Variables

GET Data

s
//personal/resume_add.html
POST Data
empty
Files
empty

Cookies

PHPSESSID
jfmin0pun049roo2q0hatj8lll
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.saranphon.com
HTTP_X_FORWARDED_FOR
84.184.15.254
HTTP_CLIENT_IP
84.184.15.254
HTTP_COOKIE
PHPSESSID=jfmin0pun049roo2q0hatj8lll
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.3.4000 Chrome/30.0.1599.101 Safari/537.36
HTTP_CONNECTION
Keep-Alive
HTTP_ACCEPT_LANGUAGE
zh-cn
HTTP_REFERER
http://www.saranphon.com/personal/resume_add.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
saranphon.com
SERVER_PORT
443
SERVER_ADDR
59.51.114.80
REMOTE_PORT
58918
REMOTE_ADDR
172.120.77.58
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/EacooPHP/public
DOCUMENT_URI
/index.php
REQUEST_URI
/personal/resume_add.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//personal/resume_add.html
SCRIPT_FILENAME
/home/wwwroot/EacooPHP/public/index.php
PATH_TRANSLATED
/home/wwwroot/EacooPHP/public
PATH_INFO
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1615333133.5313
REQUEST_TIME
1615333133
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/EacooPHP/public/../apps/
PUBLIC_PATH
/home/wwwroot/EacooPHP/public/
THEME_PATH
/home/wwwroot/EacooPHP/public/themes/
MODULE_MARK
front
BASE_PATH
THINK_VERSION
5.0.24
THINK_START_TIME
1615333133.5321
THINK_START_MEM
420872
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/EacooPHP/thinkphp/
LIB_PATH
/home/wwwroot/EacooPHP/thinkphp/library/
CORE_PATH
/home/wwwroot/EacooPHP/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/EacooPHP/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/EacooPHP/
EXTEND_PATH
/home/wwwroot/EacooPHP/extend/
VENDOR_PATH
/home/wwwroot/EacooPHP/vendor/
RUNTIME_PATH
/home/wwwroot/EacooPHP/runtime/
LOG_PATH
/home/wwwroot/EacooPHP/runtime/log/
CACHE_PATH
/home/wwwroot/EacooPHP/runtime/cache/
TEMP_PATH
/home/wwwroot/EacooPHP/runtime/temp/
CONF_PATH
/home/wwwroot/EacooPHP/public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
EACOOPHP_V
1.3.0
BUILD_VERSION
201810102222
PLUGIN_PATH
/home/wwwroot/EacooPHP/plugins/
SERVER_SOFTWARE_TYPE
nginx
RESULT_SUCCESS
success
RESULT_ERROR
error
RESULT_REDIRECT
redirect
RESULT_MESSAGE
message
RESULT_URL
url
RESULT_DATA
data
DATA_COMMON_STATUS
status
DATA_NORMAL
1
DATA_DISABLE
0
DATA_DELETE
-1
DATA_SUCCESS
1
DATA_ERROR
0
TIME_CT_NAME
create_time
TIME_UT_NAME
update_time
TIME_NOW
1615333133
DB_PREFIX
eacoo_
DB_LIST_ROWS
10
0.040538s
Baidu