[2002] PDOException in Connection.php line 313

  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 313
  2. at PDO->__construct('mysql:dbname=gdzxtxd...', 'gdzxtxroot', 'Zhaoqing0758', [0, 2, 0, ...]) in Connection.php line 313
  3. at Connection->connect() in Connection.php line 943
  4. at Connection->initConnect(true) in Mysql.php line 54
  5. at Mysql->getFields('sd_config') in Query.php line 1738
  6. at Query->getTableInfo('sd_config', 'pk') in Query.php line 1772
  7. at Query->getPk(['table' => 'sd_config', 'multi' => ['AND' => ['id' => [1]]], 'where' => ['AND' => ['id' => 1]], ...]) in Query.php line 2422
  8. at Query->find() in common.php line 165
  9. at getone('sd_config', ['id' => 1], true) in common.php line 111
  10. at get_config(1, true) in config.php line 4
  11. at include('E:\webhost\zxtxgroup...') in Config.php line 65
  12. at Config::load('E:\webhost\zxtxgroup...') in App.php line 486
  13. at App::init('index') in App.php line 356
  14. at App::module(['index', 'showlist', 'index'], ['app_namespace' => 'app', 'app_debug' => '1', 'app_trace' => '0', ...], false) in App.php line 295
  15. at App::exec(['type' => 'module', 'module' => ['index', 'showlist', 'index'], 'convert' => false], ['app_namespace' => 'app', 'app_debug' => '1', 'app_trace' => '0', ...]) in App.php line 123
  16. at App::run() in base.php line 47
  17. at require_once('E:\webhost\zxtxgroup...') in index.php line 15

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_
\\.\pipe\IISFCGI-169fdf8e-9128-4c94-9298-4266115c8be4
PHPRC
D:\php-5.5.31
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\apppool #1\apppool #1.config
APP_POOL_ID
apppool #1
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-7QDOSENNV4K
ComSpec
C:\Windows\system32\cmd.exe
DEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
12
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\php-5.2.10;D:\php-5.2.10\ext;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
2d07
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
WIN-7QDOSENNV4K$
USERPROFILE
C:\Windows\system32\config\systemprofile
VSEDEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
windir
C:\Windows
ORIG_PATH_INFO
/index.php/category_89.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.zxtxgroup.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
E:\webhost\zxtxgroupcom_bdj1eadh\www\index.php
REQUEST_URI
/category_89.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
175.29.240.195
REMOTE_ADDR
175.29.240.195
QUERY_STRING
PATH_TRANSLATED
E:\webhost\zxtxgroupcom_bdj1eadh\www\index.php\category_89.html
PATH_INFO
/category_89.html
LOGON_USER
LOCAL_ADDR
122.114.18.148
INSTANCE_META_PATH
/LM/W3SVC/257
INSTANCE_NAME
ZXTXGROUPCOM
INSTANCE_ID
257
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
E:\webhost\zxtxgroupcom_bdj1eadh\www
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\
APPL_MD_PATH
/LM/W3SVC/257/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
HTTP_X_REWRITE_URL
/category_89.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.zxtxgroup.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/category_89.html
REQUEST_TIME_FLOAT
1606611220.8603
REQUEST_TIME
1606611220
Environment Variablesempty
ThinkPHP Constants
APP_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www/run_path/
CONFIG_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www/run_path/config.php
THINK_START_TIME
1606611220.8667
THINK_START_MEM
169128
EXT
.php
DS
\
THINK_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\
LIB_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\library\
CORE_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\library\think\
TRAIT_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\library\traits\
ROOT_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\
EXTEND_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\extend\
LANG_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_core\lang\
VENDOR_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\vendor\
RUNTIME_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_temp\
LOG_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_temp\log\
CACHE_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_temp\cache\
TEMP_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www\run_temp\temp\
CONF_PATH
E:\webhost\zxtxgroupcom_bdj1eadh\www/run_path/
CONF_EXT
.php
ENV_PREFIX
PHP_
SQLBACK
E:\webhost\zxtxgroupcom_bdj1eadh\www\uploads\sqlback\
IS_CLI
false
IS_WIN
true
POWERBY
kykkk.com
DOMAIN
http://www.zxtxgroup.com
PLUG
/run_plub/
PREFIX
sd_
LID
1