[0] PDOException in Connection.php line 293

could not find driver

  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=172.21.0....', 'root', 'kstKST123', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 974
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `g...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('go_config') in Query.php line 1749
  7. at Query->getTableInfo('go_config', 'type') in Query.php line 1797
  8. at Query->getFieldsType('go_config') in Query.php line 1803
  9. at Query->getFieldsBind('go_config') in Builder.php line 256
  10. at Builder->buildWhere([], ['table' => 'go_config', 'where' => [], 'field' => '*', ...]) in Builder.php line 226
  11. at Builder->parseWhere([], ['table' => 'go_config', 'where' => [], 'field' => '*', ...]) in Builder.php line 690
  12. at Builder->select(['table' => 'go_config', 'where' => [], 'field' => '*', ...]) in Query.php line 2331
  13. at Query->select() in Cache.php line 24
  14. at Cache->_config() in Cache.php line 12
  15. at Cache->call('config')
  16. at call_user_func([object(Cache), 'call'], 'config') in common.php line 1377
  17. at rkcache('config', true) in BaseHome.php line 18
  18. at BaseHome->_initialize() in BaseMall.php line 13
  19. at BaseMall->_initialize() in Search.php line 16
  20. at Search->_initialize() in Controller.php line 57
  21. at Controller->__construct(object(Request))
  22. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 216
  23. at App::invokeClass('app\home\controller\...') in Loader.php line 400
  24. at Loader::controller('search', 'controller', false, 'Error') in App.php line 388
  25. at App::module(['Home', 'Search', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 296
  26. at App::exec(['type' => 'module', 'module' => ['Home', 'Search', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  27. at App::run() in start.php line 18
  28. at require('E:\tp_yoogoog\thinkp...') in index.php line 19

Environment Variables

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

Server/Request Data

PATH
C:\cygwinroot\usr\local\bin;C:\cygwinroot\bin;C:\cygwinroot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ldaptools;C:\Program Files\QCloud\Monitor\Barad;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHP_FCGI_MAX_REQUESTS
1000
PHPRC
C:/phpStudy/PHPTutorial/php/php-5.6.27-nts/
_FCGI_SHUTDOWN_EVENT_
1384
PATH_TRANSLATED
redirect:\index.php\Search\index\cate_id\911.html
PATH_INFO
/Home/Search/index/cate_id/911.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Home/Search/index/cate_id/911.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
35480
SCRIPT_FILENAME
E:/tp_yoogoog/public/index.php
SERVER_ADMIN
admin@php.cn
CONTEXT_DOCUMENT_ROOT
E:/tp_yoogoog/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
E:/tp_yoogoog/public
REMOTE_ADDR
3.231.229.89
SERVER_PORT
443
SERVER_ADDR
172.21.0.6
SERVER_NAME
4006828820.com
SERVER_SOFTWARE
Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
close
HTTP_HOST
4006828820.com
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI
4006828820.com
HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/Home/Search/index/cate_id/911.html
REQUEST_TIME_FLOAT
1576226932.7549
REQUEST_TIME
1576226932
argv
[]
argc
0

Environment Variables

PATH
C:\cygwinroot\usr\local\bin;C:\cygwinroot\bin;C:\cygwinroot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ldaptools;C:\Program Files\QCloud\Monitor\Barad;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHP_FCGI_MAX_REQUESTS
1000
PHPRC
C:/phpStudy/PHPTutorial/php/php-5.6.27-nts/
_FCGI_SHUTDOWN_EVENT_
1384
PATH_TRANSLATED
redirect:\index.php\Search\index\cate_id\911.html
PATH_INFO
/Home/Search/index/cate_id/911.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Home/Search/index/cate_id/911.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
35480
SCRIPT_FILENAME
E:/tp_yoogoog/public/index.php
SERVER_ADMIN
admin@php.cn
CONTEXT_DOCUMENT_ROOT
E:/tp_yoogoog/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
E:/tp_yoogoog/public
REMOTE_ADDR
3.231.229.89
SERVER_PORT
443
SERVER_ADDR
172.21.0.6
SERVER_NAME
4006828820.com
SERVER_SOFTWARE
Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
close
HTTP_HOST
4006828820.com
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI
4006828820.com
HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/Home/Search/index/cate_id/911.html
REQUEST_TIME_FLOAT
1576226932.7549
REQUEST_TIME
1576226932
argv
[]
argc
0

ThinkPHP Constants

APP_PATH
E:\tp_yoogoog\public/../application/
THINK_VERSION
5.0.12
THINK_START_TIME
1576226932.7705
THINK_START_MEM
135416
EXT
.php
DS
\
THINK_PATH
E:\tp_yoogoog\thinkphp\
LIB_PATH
E:\tp_yoogoog\thinkphp\library\
CORE_PATH
E:\tp_yoogoog\thinkphp\library\think\
TRAIT_PATH
E:\tp_yoogoog\thinkphp\library\traits\
ROOT_PATH
E:\tp_yoogoog\
EXTEND_PATH
E:\tp_yoogoog\extend\
VENDOR_PATH
E:\tp_yoogoog\vendor\
RUNTIME_PATH
E:\tp_yoogoog\runtime\
LOG_PATH
E:\tp_yoogoog\runtime\log\
CACHE_PATH
E:\tp_yoogoog\runtime\cache\
TEMP_PATH
E:\tp_yoogoog\runtime\temp\
CONF_PATH
E:\tp_yoogoog\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
MB_CASE_UPPER
0
MB_CASE_LOWER
1
MB_CASE_TITLE
2
MD5_KEY
a2382918dbb49c8643f19bc3ab90ecf9
CHARSET
UTF-8
BASE_SITE_URL
https://4006828820.com/
UPLOAD_SITE_URL
https://4006828820.com/uploads
BASE_UPLOAD_PATH
E:\tp_yoogoog\/public/uploads
CHAT_SITE_URL
https://4006828820.com/static/chat
TIMESTAMP
1576226932
DIR_SHOP
shop
DIR_CMS
cms
DIR_CIRCLE
circle
DIR_MICROSHOP
microshop
DIR_ADMIN
kstyoogoogadmin
DIR_API
api
DIR_MOBILE
mobile
DIR_WAP
wap
DIR_RESOURCE
data/resource
DIR_UPLOAD
public/uploads
ATTACH_PATH
home
ATTACH_COMMON
home/common
ATTACH_AVATAR
home/avatar
ATTACH_INVITER
home/inviter
ATTACH_EDITOR
home/editor
ATTACH_MEMBERTAG
home/membertag
ATTACH_STORE
home/store
ATTACH_GOODS
home/store/goods
ATTACH_STORE_DECORATION
home/store/decoration
ATTACH_LOGIN
home/login
ATTACH_WAYBILL
home/waybill
ATTACH_ARTICLE
home/article
ATTACH_BRAND
home/brand
ATTACH_COMPLAIN
home/complain
ATTACH_GOODS_CLASS
shop/goods_class
ATTACH_DELIVERY
/delivery
ATTACH_ADV
home/adv
ATTACH_ACTIVITY
home/activity
ATTACH_WATERMARK
home/watermark
ATTACH_POINTPROD
home/pointprod
ATTACH_GROUPBUY
home/groupbuy
ATTACH_LIVE_GROUPBUY
home/livegroupbuy
ATTACH_SLIDE
home/store/slide
ATTACH_VOUCHER
home/voucher
ATTACH_STORE_JOININ
home/store_joinin
ATTACH_REC_POSITION
home/rec_position
ATTACH_MOBILE
mobile
ATTACH_CIRCLE
circle
ATTACH_CMS
cms
ATTACH_LIVE
live
ATTACH_MALBUM
home/member
ATTACH_MICROSHOP
microshop
TPL_SHOP_NAME
default
TPL_CIRCLE_NAME
default
TPL_MICROSHOP_NAME
default
TPL_CMS_NAME
default
TPL_ADMIN_NAME
default
TPL_DELIVERY_NAME
default
TPL_MEMBER_NAME
default
DEFAULT_CONNECT_SMS_TIME
60
STORE_JOIN_STATE_NEW
10
STORE_JOIN_STATE_PAY
11
STORE_JOIN_STATE_VERIFY_SUCCESS
20
STORE_JOIN_STATE_VERIFY_FAIL
30
STORE_JOIN_STATE_PAY_FAIL
31
STORE_JOIN_STATE_FINAL
40
DEFAULT_SPEC_COLOR_ID
1
GOODS_IMAGES_WIDTH
60,240,360,1280
GOODS_IMAGES_HEIGHT
60,240,360,12800
GOODS_IMAGES_EXT
_60,_240,_360,_1280
ORDER_STATE_CANCEL
0
ORDER_STATE_NEW
10
ORDER_STATE_PAY
20
ORDER_STATE_SEND
30
ORDER_STATE_SUCCESS
40
ORDER_AUTO_CANCEL_DAY
3
ORDER_AUTO_RECEIVE_DAY
7
CODE_INVALID_REFUND
7
ORDER_DEL_STATE_DEFAULT
0
ORDER_DEL_STATE_DELETE
1
ORDER_DEL_STATE_DROP
2
ORDER_EVALUATE_TIME
1296000
OFFLINE_ORDER_CANCEL_TIME
3
MOBILE_SITE_URL
http://4006828820.com/mobile
SHOP_SITE_URL
http://4006828820.com/home
WAP_SITE_URL
http://4006828820.com/wap