中国·金沙集团(3354cc-VIP认证)官网-Macau Game Mall

[2002] PDOException in Connection.php line 295

SQLSTATE[HY000] [2002] Connection refused

  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=127.0.0.1...', 'dygd_yantaisheng', 'B2dSNWWHh6erneMf', [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('`ecms_mod`') in Query.php line 1921
  7. at Query->getTableInfo('ecms_mod', 'type') in Query.php line 1969
  8. at Query->getFieldsType('ecms_mod') in Query.php line 1975
  9. at Query->getFieldsBind('ecms_mod') in Builder.php line 270
  10. at Builder->buildWhere([], ['order' => ['upid' => 'desc', 'nourl' => 'desc'], 'table' => 'ecms_mod', 'where' => [], ...]) in Builder.php line 240
  11. at Builder->parseWhere([], ['order' => ['upid' => 'desc', 'nourl' => 'desc'], 'table' => 'ecms_mod', 'where' => [], ...]) in Builder.php line 719
  12. at Builder->select(['order' => ['upid' => 'desc', 'nourl' => 'desc'], 'table' => 'ecms_mod', 'where' => [], ...]) in Query.php line 2511
  13. at Query->select() in route.php line 13
  14. at unknown()
  15. at sg_load('E49C7E5A466AD577AAQA...') in route.php line 46
  16. at require_once('/www/wwwroot/dygd.ya...') in route.php line 2
  17. at include('/www/wwwroot/dygd.ya...') in App.php line 641
  18. at App::routeCheck(object(Request), ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 116
  19. at App::run() in start.php line 19
  20. at require('/www/wwwroot/dygd.ya...') in index.php line 26

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
qmjj6l2si1nm304evh0k0f469v
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=qmjj6l2si1nm304evh0k0f469v
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.dongyigd.com
HTTP_USER_AGENT
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.dongyigd.com
SERVER_PORT
80
SERVER_ADDR
172.30.186.195
REMOTE_PORT
35202
REMOTE_ADDR
104.140.114.82
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/dygd.yantaishengjie.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/dygd.yantaishengjie.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713951770.8379
REQUEST_TIME
1713951770
Environment Variables
empty

ThinkPHP Constants

BIND_MODULE
index
APP_PATH
/www/wwwroot/dygd.yantaishengjie.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1713951812.51
THINK_START_MEM
414632
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/dygd.yantaishengjie.com/thinkphp/
LIB_PATH
/www/wwwroot/dygd.yantaishengjie.com/thinkphp/library/
CORE_PATH
/www/wwwroot/dygd.yantaishengjie.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/dygd.yantaishengjie.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/dygd.yantaishengjie.com/
EXTEND_PATH
/www/wwwroot/dygd.yantaishengjie.com/extend/
VENDOR_PATH
/www/wwwroot/dygd.yantaishengjie.com/vendor/
RUNTIME_PATH
/www/wwwroot/dygd.yantaishengjie.com/runtime/
LOG_PATH
/www/wwwroot/dygd.yantaishengjie.com/runtime/log/
CACHE_PATH
/www/wwwroot/dygd.yantaishengjie.com/runtime/cache/
TEMP_PATH
/www/wwwroot/dygd.yantaishengjie.com/runtime/temp/
CONF_PATH
/www/wwwroot/dygd.yantaishengjie.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258