betway必威手机中文版

[2002] PDOException in Connection.php line 293

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 293
  2. at PDO->__construct('mysql:host=127.0.0.1...', 'chepinzhe', '2cLKjKh5B2n4NkPy', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 990
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `q...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`qb_news_sort`') in Query.php line 1863
  7. at Query->getTableInfo('qb_news_sort', 'type') in Query.php line 1911
  8. at Query->getFieldsType('qb_news_sort') in Query.php line 1917
  9. at Query->getFieldsBind('qb_news_sort') in Builder.php line 264
  10. at Builder->buildWhere(['AND' => ['id' => ['=', '3']]], ['multi' => ['AND' => ['id' => [['=', '3']]]], 'where' => ['AND' => ['id' => ['=', '3']]], 'field' => ['mid'], ...]) in Builder.php line 234
  11. at Builder->parseWhere(['AND' => ['id' => ['=', '3']]], ['multi' => ['AND' => ['id' => [['=', '3']]]], 'where' => ['AND' => ['id' => ['=', '3']]], 'field' => ['mid'], ...]) in Builder.php line 710
  12. at Builder->select(['multi' => ['AND' => ['id' => [['=', '3']]]], 'where' => ['AND' => ['id' => ['=', '3']]], 'field' => ['mid'], ...]) in Query.php line 2395
  13. at Query->getPdo() in Query.php line 413
  14. at Query->value('mid') in C.php line 396
  15. at C::getMidByFid('3') in C.php line 105
  16. at C->index('3', 0) in Content.php line 17
  17. at Content->index('3', 0)
  18. at ReflectionMethod->invokeArgs(object(Content), ['3', 0]) in App.php line 348
  19. at App::invokeMethod([object(Content), 'index'], []) in App.php line 612
  20. at App::module(['news', 'content', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 461
  21. at App::exec(['type' => 'module', 'module' => ['news', 'content', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  22. at App::run() in start.php line 19
  23. at require('/www/carjlb/thinkphp...') in index.php line 29

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

TopicReply_52754
1577185893
visit_homepage_3921_
1577148166
TopicReply_50999
1577087939
TopicReply_53279
1576922201
TopicReply_53280
1576921655
TopicReply_52235
1576920680
TopicReply_18159
1576844226
TopicReply_51355
1576840250
TopicReply_25697
1576837410
TopicReply_7641
1576834569
TopicReply_52520
1576811271
TopicReply_48868
1576810135
TopicReply_49652
1576803887
TopicReply_50387
1576752764
TopicReply_51347
1576751630
TopicReply_50885
1576749922
TopicReply_49229
1576748786
TopicReply_51219
1576746515
visit_homepage_1046_
1576739698
TopicReply_50436
1576707891
TopicReply_50628
1576706186
TopicReply_46413
1576705618
TopicReply_50133
1576705050
TopicReply_51175
1576704482
TopicReply_51051
1576699371
TopicReply_47890
1576691418
visit_homepage_812_
1576680626
visit_homepage_596_
1576669834
visit_qun_812_
1576898754
visit_qun_596_
1576887962
TopicReply_52466
1576635754
TopicReply_51612
1576629506
TopicReply_50687
1577042372
visit_qun_39247_
1576616777
TopicReply_51953
1576534181
TopicReply_49161
1576533045
TopicReply_52894
1576532685
TopicReply_49655
1576532544
TopicReply_52770
1576532474
TopicReply_52573
1576528143
TopicReply_52399
1576527575
TopicReply_51785
1576527007
TopicReply_51777
1576525872
TopicReply_48029
1576525033
TopicReply_52934
1576524565
TopicReply_52227
1576523997
TopicReply_52628
1576522861
visit_qun_39262_
1576516330
TopicReply_45691
1576511501
TopicReply_49538
1576510933
visit_qun_1046_
1576485592
TopicReply_28713
1576484238
TopicReply_34927
1576483101
TopicReply_44158
1576481965
visit_homepage_43_
1576480255
TopicReply_52725
1576468902
visit_qun_3921_
1576674099
visit_qun_46503_
1576457550
visit_qun_901_
1576456976
visit_qun_39151_
1576456420
visit_qun_39276_
1576455272
visit_qun_39278_
1576454137
visit_qun_10408_
1576816451
visit_qun_42174_
1576451868
visit_qun_9989_
1576450162
TopicReply_52196
1576447884
TopicReply_53098
1576446748
visit_qun_39199_
1576430294
visit_qun_39193_
1576764383
visit_qun_1054_
1576409472
TopicReply_52234
1576396312
TopicReply_52420
1576396219
TopicReply_52604
1576396207
visit_qun_38884_
1576396070
TopicReply_50798
1576396052
TopicReply_52851
1576396048
TopicReply_50954
1576396043
TopicReply_52536
1576396038
TopicReply_52732
1576395947
TopicReply_52453
1576395935
TopicReply_52502
1576395811
TopicReply_52549
1576395758
visit_qun_39137_
1576395744
visit_qun_39138_
1576395743
TopicReply_43695
1576395737
visit_qun_39150_
1576395714
comment_
1577334443
TopicReply_28191
1576395640
TopicReply_11965
1576395603
TopicReply_53233
1576395602
TopicReply_53239
1576395600
TopicReply_44545
1576395590
TopicReply_26777
1576395589
TopicReply_53241
1576395587
TopicReply_53236
1576395585
TopicReply_3405
1576395583
TopicReply_30307
1576395580
TopicReply_26513
1576395578
TopicReply_53238
1576395575
TopicReply_53234
1576395573
TopicReply_53237
1576395569
TopicReply_53240
1576395560
TopicReply_27185
1576395558
TopicReply_3534
1576395556
TopicReply_53235
1576395419
TopicReply_10299
1576395415
TopicReply_12323
1576395357
TopicReply_11885
1576395338
TopicReply_26774
1576395217
TopicReply_26779
1576395155
TopicReply_28323
1576395152
TopicReply_14338
1576395149
TopicReply_5940
1576341975
cReply_
1576243579
visit_homepage_52_
1576216613
TopicReply_17017
1576214813
TopicReply_20615
1576196500
TopicReply_53206
1576139107
visit_qun_417_
1576137722
visit_qun_765_
1577089497
visit_qun_735_
1576137618
visit_qun_38244_
1576137610
visit_qun_91502_
1576137587
visit_qun_38864_
1576137570
visit_qun_33525_
1576621917
visit_qun_39024_
1576649856
visit_qun_1135_
1576137504
visit_qun_9299_
1576137489
visit_qun_579_
1576137475
visit_qun_148_
1576137081
visit_qun_358_
1576137054
visit_qun_153_
1576137047
visit_qun_258_
1576137031
visit_qun_396_
1576136960
visit_qun_796_
1576136920
visit_qun_96_
1576136918
visit_qun_500_
1576136923
last_qun_id
38870
home_qun_id
500
user_sid
a01d8b1db6
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/news/content/index/fid/3.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/news/content/index/fid/3.html
REMOTE_PORT
39664
SCRIPT_FILENAME
/www/carjlb/index.php
SERVER_ADMIN
webmasterexample.com
CONTEXT_DOCUMENT_ROOT
/www/carjlb/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/carjlb/
REMOTE_ADDR
62.60.210.152
SERVER_PORT
443
SERVER_ADDR
172.18.117.61
SERVER_NAME
www.huitenedu.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.huitenedu.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
CONTENT_TYPE
application/x-www-form-urlencoded
CONTENT_LENGTH
0
HTTP_ACCEPT_CHARSET
utf-8
HTTP_COOKIE
TopicReply_52754=1577185893; visit_homepage_3921_=1577148166; TopicReply_50999=1577087939; TopicReply_53279=1576922201; TopicReply_53280=1576921655; TopicReply_52235=1576920680; TopicReply_18159=1576844226; TopicReply_51355=1576840250; TopicReply_25697=1576837410; TopicReply_7641=1576834569; TopicReply_52520=1576811271; TopicReply_48868=1576810135; TopicReply_49652=1576803887; TopicReply_50387=1576752764; TopicReply_51347=1576751630; TopicReply_50885=1576749922; TopicReply_49229=1576748786; TopicReply_51219=1576746515; visit_homepage_1046_=1576739698; TopicReply_50436=1576707891; TopicReply_50628=1576706186; TopicReply_46413=1576705618; TopicReply_50133=1576705050; TopicReply_51175=1576704482; TopicReply_51051=1576699371; TopicReply_47890=1576691418; visit_homepage_812_=1576680626; visit_homepage_596_=1576669834; visit_qun_812_=1576898754; visit_qun_596_=1576887962; TopicReply_52466=1576635754; TopicReply_51612=1576629506; TopicReply_50687=1577042372; visit_qun_39247_=1576616777; TopicReply_51953=1576534181; TopicReply_49161=1576533045; TopicReply_52894=1576532685; TopicReply_49655=1576532544; TopicReply_52770=1576532474; TopicReply_52573=1576528143; TopicReply_52399=1576527575; TopicReply_51785=1576527007; TopicReply_51777=1576525872; TopicReply_48029=1576525033; TopicReply_52934=1576524565; TopicReply_52227=1576523997; TopicReply_52628=1576522861; visit_qun_39262_=1576516330; TopicReply_45691=1576511501; TopicReply_49538=1576510933; visit_qun_1046_=1576485592; TopicReply_28713=1576484238; TopicReply_34927=1576483101; TopicReply_44158=1576481965; visit_homepage_43_=1576480255; TopicReply_52725=1576468902; visit_qun_3921_=1576674099; visit_qun_46503_=1576457550; visit_qun_901_=1576456976; visit_qun_39151_=1576456420; visit_qun_39276_=1576455272; visit_qun_39278_=1576454137; visit_qun_10408_=1576816451; visit_qun_42174_=1576451868; visit_qun_9989_=1576450162; TopicReply_52196=1576447884; TopicReply_53098=1576446748; visit_qun_39199_=1576430294; visit_qun_39193_=1576764383; visit_qun_1054_=1576409472; TopicReply_52234=1576396312; TopicReply_52420=1576396219; TopicReply_52604=1576396207; visit_qun_38884_=1576396070; TopicReply_50798=1576396052; TopicReply_52851=1576396048; TopicReply_50954=1576396043; TopicReply_52536=1576396038; TopicReply_52732=1576395947; TopicReply_52453=1576395935; TopicReply_52502=1576395811; TopicReply_52549=1576395758; visit_qun_39137_=1576395744; visit_qun_39138_=1576395743; TopicReply_43695=1576395737; visit_qun_39150_=1576395714; comment_=1577334443; TopicReply_28191=1576395640; TopicReply_11965=1576395603; TopicReply_53233=1576395602; TopicReply_53239=1576395600; TopicReply_44545=1576395590; TopicReply_26777=1576395589; TopicReply_53241=1576395587; TopicReply_53236=1576395585; TopicReply_3405=1576395583; TopicReply_30307=1576395580; TopicReply_26513=1576395578; TopicReply_53238=1576395575; TopicReply_53234=1576395573; TopicReply_53237=1576395569; TopicReply_53240=1576395560; TopicReply_27185=1576395558; TopicReply_3534=1576395556; TopicReply_53235=1576395419; TopicReply_10299=1576395415; TopicReply_12323=1576395357; TopicReply_11885=1576395338; TopicReply_26774=1576395217; TopicReply_26779=1576395155; TopicReply_28323=1576395152; TopicReply_14338=1576395149; TopicReply_5940=1576341975; cReply_=1576243579; visit_homepage_52_=1576216613; TopicReply_17017=1576214813; TopicReply_20615=1576196500; TopicReply_53206=1576139107; visit_qun_417_=1576137722; visit_qun_765_=1577089497; visit_qun_735_=1576137618; visit_qun_38244_=1576137610; visit_qun_91502_=1576137587; visit_qun_38864_=1576137570; visit_qun_33525_=1576621917; visit_qun_39024_=1576649856; visit_qun_1135_=1576137504; visit_qun_9299_=1576137489; visit_qun_579_=1576137475; visit_qun_148_=1576137081; visit_qun_358_=1576137054; visit_qun_153_=1576137047; visit_qun_258_=1576137031; visit_qun_396_=1576136960; visit_qun_796_=1576136920; visit_qun_96_=1576136918; visit_qun_500_=1576136923; last_qun_id=38870; home_qun_id=500; user_sid=a01d8b1db6
HTTP_ACCEPT
*/*
HTTP_HOST
www.huitenedu.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
proxy-nokeepalive
1
SSL_TLS_SNI
www.huitenedu.com
HTTPS
on
SCRIPT_URI
/news/content/index/fid/3.html
SCRIPT_URL
/news/content/index/fid/3.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.huitenedu.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
news/content/index/fid/3.html
REDIRECT_SCRIPT_URI
/news/content/index/fid/3.html
REDIRECT_SCRIPT_URL
/news/content/index/fid/3.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1577493530.9972
REQUEST_TIME
1577493530
PATH_INFO
news/content/index/fid/3.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/carjlb/application/
ENTRANCE
index
THINK_VERSION
5.0.18
THINK_START_TIME
1577493530.9977
THINK_START_MEM
451336
EXT
.php
DS
/
THINK_PATH
/www/carjlb/thinkphp/
LIB_PATH
/www/carjlb/thinkphp/library/
CORE_PATH
/www/carjlb/thinkphp/library/think/
TRAIT_PATH
/www/carjlb/thinkphp/library/traits/
ROOT_PATH
/www/carjlb/
EXTEND_PATH
/www/carjlb/extend/
VENDOR_PATH
/www/carjlb/vendor/
RUNTIME_PATH
/www/carjlb/runtime/
LOG_PATH
/www/carjlb/runtime/log/
CACHE_PATH
/www/carjlb/runtime/cache/
TEMP_PATH
/www/carjlb/runtime/temp/
CONF_PATH
/www/carjlb/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/carjlb/vendor/ezyang/htmlpurifier/library
TEMPLATE_PATH
/www/carjlb/template/
IS_POST
false
PUBLIC_URL
/public/
PUBLIC_PATH
/www/carjlb/public/
PLUGINS_PATH
/www/carjlb/plugins/
CACHE_DIR
/www/carjlb/runtime/
QUN
商圈
ADMIN_FILENAME
admin.php
LOAD_INDEXBASE
true