[2002] PDOException in Connection.php line 293

  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 293
  2. at PDO->__construct('mysql:host=192.168.7...', 'root', 'sa123456', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 989
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `h...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('hs_jobs') in Query.php line 1757
  7. at Query->getTableInfo('hs_jobs', 'type') in Query.php line 1805
  8. at Query->getFieldsType('hs_jobs') in Query.php line 1811
  9. at Query->getFieldsBind('hs_jobs') in Builder.php line 266
  10. at Builder->buildWhere(['AND' => ['status' => 2, 'end_time' => ['>', '2019-05-26 20:52:41']]], ['multi' => ['AND' => ['status' => [2], 'end_time' => [['>', '2019-05-26 20:52:41']]]], 'where' => ['AND' => ['status' => 2, 'end_time' => ['>', '2019-05-26 20:52:41']]], 'order' => ['publish_time desc'], ...]) in Builder.php line 236
  11. at Builder->parseWhere(['AND' => ['status' => 2, 'end_time' => ['>', '2019-05-26 20:52:41']]], ['multi' => ['AND' => ['status' => [2], 'end_time' => [['>', '2019-05-26 20:52:41']]]], 'where' => ['AND' => ['status' => 2, 'end_time' => ['>', '2019-05-26 20:52:41']]], 'order' => ['publish_time desc'], ...]) in Builder.php line 700
  12. at Builder->select(['multi' => ['AND' => ['status' => [2], 'end_time' => [['>', '2019-05-26 20:52:41']]]], 'where' => ['AND' => ['status' => 2, 'end_time' => ['>', '2019-05-26 20:52:41']]], 'order' => ['publish_time desc'], ...]) in Query.php line 2339
  13. at Query->select() in Mysql.php line 18
  14. at Mysql->jobsList('') in IndexController.php line 37
  15. at IndexController->indexAction()
  16. at ReflectionMethod->invokeArgs(object(IndexController), []) in App.php line 343
  17. at App::invokeMethod([object(IndexController), 'indexAction'], []) in App.php line 595
  18. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  19. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  20. at App::run() in start.php line 19
  21. at require('D:\web\ourweb\hongsh...') in index.php line 29

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-2c7a188e-b7c2-4cb9-8838-b9dd09f8aa3b
PHP_FCGI_MAX_REQUESTS
10000
PHPRC
C:\Program Files (x86)\PHP\v5.6
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\www.hongshigroup.com\www.hongshigroup.com.config
APP_POOL_ID
www.hongshigroup.com
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-2GRK9R10IKH
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Program Files (x86)\iis express\PHP\v5.6;C:\Windows\system32\inetsrv;C:\Program Files (x86)\PHP\v5.6;C:\Windows\system32\inetsrv;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;D:\Program Files (x86)\Dell\SysMgt\oma\bin;D:\Program Files (x86)\Dell\SysMgt\shared\bin;D:\Program Files (x86)\Dell\SysMgt\idrac;;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3e04
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-2GRK9R10IKH$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.hongshigroup.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\web\ourweb\hongshigroup.com\public\index.php
REQUEST_URI
/
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
34184
REMOTE_HOST
116.211.155.216
REMOTE_ADDR
116.211.155.216
QUERY_STRING
PATH_TRANSLATED
D:\web\ourweb\hongshigroup.com\public\index.php
LOGON_USER
LOCAL_ADDR
124.160.118.178
INSTANCE_META_PATH
/LM/W3SVC/16
INSTANCE_NAME
WWW.HONGSHIGROUP.COM
INSTANCE_ID
16
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\web\ourweb\hongshigroup.com\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\web\ourweb\hongshigroup.com\public\
APPL_MD_PATH
/LM/W3SVC/16/ROOT
IIS_UrlRewriteModule
7.1.0871.0
WEBSOCKET_VERSION
13
HTTP_X_JSL_PORT
80
HTTP_X_JSL_SCHEME
http
HTTP_X_FROM
JSL
HTTP_X_REAL_FORWARDED_FOR
154.85.189.10
HTTP_X_FORWARDED_FOR
154.85.189.10
HTTP_X_CONNECTING_IP
154.85.189.10
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_REFERER
https://www.yygjzc.com/
HTTP_HOST
www.hongshigroup.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1558875161.0005
REQUEST_TIME
1558875161
PATH_INFO
false
Environment Variables
empty

ThinkPHP Constants

UPLOAD_PATH
D:\web\ourweb\hongshigroup.com\public/fnadmin/Upload/
DOMAIN
.hongshigroup.com
ADMIN_DOMAIN
www.hongshigroup.com
ADMIN_URL
https://www.yygjzc.com/
BASE_DOMAIN
www.hongshigroup.com
BASE_URL
https://www.yygjzc.com/
COOKIE_ENCRYPT
32sjdgjwft3jddwt3bhchwqefuwfq23
LOGIN_MARK
_UL_
ADMIN_MARK
_AL_
DATA_PATH
D:\web\ourweb\hongshigroup.com\public/App_Data
APP_PATH
D:\web\ourweb\hongshigroup.com\public/../application/
RUNTIME_PATH
D:\web\ourweb\hongshigroup.com\public/../runtime/
EXTEND_PATH
D:\web\ourweb\hongshigroup.com\public/../ThinkPHP5/extend/
VENDOR_PATH
D:\web\ourweb\hongshigroup.com\public/../ThinkPHP5/vendor/
THINK_VERSION
5.0.14
THINK_START_TIME
1558875161.0016
THINK_START_MEM
155576
EXT
.php
DS
\
THINK_PATH
D:\web\ourweb\hongshigroup.com\ThinkPHP5\thinkphp\
LIB_PATH
D:\web\ourweb\hongshigroup.com\ThinkPHP5\thinkphp\library\
CORE_PATH
D:\web\ourweb\hongshigroup.com\ThinkPHP5\thinkphp\library\think\
TRAIT_PATH
D:\web\ourweb\hongshigroup.com\ThinkPHP5\thinkphp\library\traits\
ROOT_PATH
D:\web\ourweb\hongshigroup.com\
LOG_PATH
D:\web\ourweb\hongshigroup.com\public/../runtime/log\
CACHE_PATH
D:\web\ourweb\hongshigroup.com\public/../runtime/cache\
TEMP_PATH
D:\web\ourweb\hongshigroup.com\public/../runtime/temp\
CONF_PATH
D:\web\ourweb\hongshigroup.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true