[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:dbname=sq_ruij...', 'sq_ruijing2', 'juweiqiang260', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 969
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `e...', [], false, true) in Mysql.php line 62
  6. at Mysql->getFields('english_category') in Query.php line 1755
  7. at Query->getTableInfo('english_category', 'pk') in Query.php line 1789
  8. at Query->getPk(['multi' => ['AND' => ['id' => [['null', '']]]], 'where' => ['AND' => ['id' => ['null', '']]], 'table' => 'english_category', ...]) in Query.php line 2445
  9. at Query->find() in Common.php line 27
  10. at Common->_initialize() in Index.php line 5
  11. at Index->_initialize() in Controller.php line 57
  12. at Controller->__construct(object(Request))
  13. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 216
  14. at App::invokeClass('app\home\controller\...') in Loader.php line 420
  15. at Loader::controller('Index', 'controller', false, 'EmptyController') in App.php line 388
  16. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 296
  17. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  18. at App::run() in start.php line 18
  19. at require('D:\wwwroot\shruijing...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
ll0ju9rrt7vo90oban3p5ngqv1
Session
empty

Server/Request Data

PROCESSOR_ARCHITEW6432
AMD64
_FCGI_X_PIPE_
\\.\pipe\IISFCGI-d1f16674-7894-44d4-b5f1-dbdd613a56bf
PHPRC
C:\php55\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\Normal_99\Normal_99.config
APP_POOL_ID
Normal_99
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
a694749
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:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\php5;C:\salt;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;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
a694749$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO
/en/index.php
URL
/en/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.rigen-bio.com
SCRIPT_NAME
/en/index.php
SCRIPT_FILENAME
D:\wwwroot\shruijing2\wwwroot\en\index.php
REQUEST_URI
/en/index.php
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
37322
REMOTE_HOST
107.158.145.22
REMOTE_ADDR
107.158.145.22
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\shruijing2\wwwroot\en\index.php
LOGON_USER
LOCAL_ADDR
172.31.95.16
INSTANCE_META_PATH
/LM/W3SVC/170
INSTANCE_NAME
SHRUIJING2
INSTANCE_ID
170
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\shruijing2\wwwroot
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:\wwwroot\shruijing2\wwwroot\
APPL_MD_PATH
/LM/W3SVC/170/ROOT
IIS_UrlRewriteModule
7.1.0761.0
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11
HTTP_HOST
www.rigen-bio.com
HTTP_COOKIE
PHPSESSID=ll0ju9rrt7vo90oban3p5ngqv1
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
FCGI_ROLE
RESPONDER
PHP_SELF
/en/index.php
REQUEST_TIME_FLOAT
1714130027.127
REQUEST_TIME
1714130027
PATH_INFO
false
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/en/public
APP_PATH
D:\wwwroot\shruijing2\wwwroot\en/app/
DATA_PATH
D:\wwwroot\shruijing2\wwwroot\en/runtime/Data/
PLUGIN_PATH
D:\wwwroot\shruijing2\wwwroot\en/plugins/
THINK_VERSION
5.0.11
THINK_START_TIME
1714130027.1427
THINK_START_MEM
135912
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\shruijing2\wwwroot\en\think\
LIB_PATH
D:\wwwroot\shruijing2\wwwroot\en\think\library\
CORE_PATH
D:\wwwroot\shruijing2\wwwroot\en\think\library\think\
TRAIT_PATH
D:\wwwroot\shruijing2\wwwroot\en\think\library\traits\
ROOT_PATH
D:\wwwroot\shruijing2\wwwroot\en\
EXTEND_PATH
D:\wwwroot\shruijing2\wwwroot\en\extend\
VENDOR_PATH
D:\wwwroot\shruijing2\wwwroot\en\vendor\
RUNTIME_PATH
D:\wwwroot\shruijing2\wwwroot\en\runtime\
LOG_PATH
D:\wwwroot\shruijing2\wwwroot\en\runtime\log\
CACHE_PATH
D:\wwwroot\shruijing2\wwwroot\en\runtime\cache\
TEMP_PATH
D:\wwwroot\shruijing2\wwwroot\en\runtime\temp\
CONF_PATH
D:\wwwroot\shruijing2\wwwroot\en/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
UPLOAD_PATH
./Uploads/
MAX_MENU_LENGTH
3
MAX_SUB_MENU_LENGTH
5
MODULE_NAME
index
ACTION_NAME
index