[2002] PDOException in Connection.php line 295

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 295
  2. at PDO->__construct('mysql:host=127.0.0.1...', 'wikiomni', 'StpbPpAZK5FXcZeA', [0, 2, 0, ...]) in Connection.php line 295
  3. at Connection->connect() in Connection.php line 995
  4. at Connection->initConnect(false) in Connection.php line 348
  5. at Connection->query('SHOW COLUMNS FROM `g...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`go_blog`') in Query.php line 1921
  7. at Query->getTableInfo('go_blog', 'type') in Query.php line 1969
  8. at Query->getFieldsType('go_blog') in Query.php line 1975
  9. at Query->getFieldsBind('go_blog') in Builder.php line 270
  10. at Builder->buildWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['id', 'urlcode', 'title'], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Builder.php line 240
  11. at Builder->parseWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['id', 'urlcode', 'title'], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Builder.php line 719
  12. at Builder->select(['field' => ['id', 'urlcode', 'title'], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Query.php line 2511
  13. at Query->select() in Home.php line 44
  14. at Home->_initialize() in Controller.php line 59
  15. at Controller->__construct(object(Request))
  16. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  17. at App::invokeClass('app\pedia\controller...') in Loader.php line 479
  18. at Loader::controller('wiki', 'controller', false, 'Error') in App.php line 580
  19. at App::module(['pedia', 'wiki', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  20. at App::exec(['type' => 'module', 'module' => ['pedia', 'wiki', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  21. at App::run() in start.php line 19
  22. at require('/www/wwwroot/www.kno...') in index.php line 37

Environment Variables

GET Data

word
Moscow_Central_Bus_Terminal
POST Data
empty
Files
empty

Cookies

_ga
GA1.1.730553612.1734574847
CLID
8031394752db4c0c8485f0bdda3fa6a0.20241219.20251219
_clck
1sxr4oq|2|fru|0|1814
WMF-Last-Access
19-Dec-2024
NetworkProbeLimit
0.001
enwikimwuser-sessionId
84e8b700bbd5fca92870
countryCode
US
eswikimwuser-sessionId
4915e08c36050526b59e
539540
4686,4667,4677,1788,4712,5964,4700
_pubcid
ece84f3f-dc50-48de-854e-cda432646625
_pubcid_cst
zix7LPQsHA==
_lr_retry_request
true
_lr_env_src_ats
false
_ga_N5PKF1XT49
GS1.1.1734574846.1.1.1734574860.0.0.0
_cc_id
accef02ea499e10beb301190e0f61fe6
panoramaId
83e2d7a9fcaac91aa87c01b4ac9d185ca02ce0cb7af7bcc6b7da48c53496c1bb
_gd_visitor
af42fcde-dcf8-4323-8946-2578bdea80ac
_gd_session
6c6fb936-5b4b-47a5-8303-795518470a97
cto_bundle
eVzvTl9ZcWYyNnlrQW91VDk4YUdMRHpRUzNWSEc5aUI4djEzTEVjbml5bVdlSFhXSmg2WGR2MjUzNktrRTc3JTJGakhDJTJGWGxqJTJCY3VUJTJGVUtCeXpHd056bEl0ODlTZzc1MFZGZ1o0eXRtaHN2MlI4d3lCYk9HODdYUnA3V0FWc2Y4ZmN3aXNv
cto_bidid
XmqVkF9YMlJId1RjaG1mR05uWEN4Q1hqaVBFQWlIcDBHdExBWmtoV296alowNzRBYUUweDZFd3olMkJHUlZFbzhZY00yRUtHTDBqbjNwOGh4UlZQOWg3VElRRkNBJTNEJTNE
panoramaId_expiry
1735179660603
_gcl_au
1.1.32206904.1734574862
__gads
ID=fbdbc7ee7449e157:T=1734574861:RT=1734574861:S=ALNI_MbCaALAfiefW_OYhxpAWlry9I3qzw
__gpi
UID=00000f74b9bde535:T=1734574861:RT=1734574861:S=ALNI_MYPQofRDnCtiDGPgCVHUpcnGXFHBw
__eoi
ID=70875c45456317b2:T=1734574861:RT=1734574861:S=AA-AfjZfDApCudq1ooc7-yJ0yTxV
_clsk
rx2k41|1734574862032|4|1|n.clarity.ms/collect
_ga_DWCCJLKX3X
GS1.1.1734574860.1.0.1734574862.58.0.0
hb_insticator_uid
4478a999-c77d-4342-a86c-b00ab3cbb17b
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/pedia/wiki/index/Moscow_Central_Bus_Terminal/wiki/index/Moscow_Central_Bus_Terminal
PATH_INFO
/pedia/wiki/index/Moscow_Central_Bus_Terminal
SCRIPT_NAME
/index.php
REQUEST_URI
/knowpedia/Moscow_Central_Bus_Terminal
QUERY_STRING
word=Moscow_Central_Bus_Terminal
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
word=Moscow_Central_Bus_Terminal
REDIRECT_URL
/knowpedia/Moscow_Central_Bus_Terminal
REMOTE_PORT
13194
SCRIPT_FILENAME
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/
REMOTE_ADDR
172.71.254.49
SERVER_PORT
443
SERVER_ADDR
172.31.44.238
SERVER_NAME
www.knowpia.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.knowpia.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.knowpia.com
HTTP_CF_CONNECTING_IP
3.140.197.103
HTTP_PRAGMA
no-cache
HTTP_USER_AGENT
Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/129.0.6668.100 Safari/537.36
HTTP_REFERER
https://www.knowpia.com
HTTP_COOKIE
_ga=GA1.1.730553612.1734574847; CLID=8031394752db4c0c8485f0bdda3fa6a0.20241219.20251219; _clck=1sxr4oq%7C2%7Cfru%7C0%7C1814; WMF-Last-Access=19-Dec-2024; NetworkProbeLimit=0.001; enwikimwuser-sessionId=84e8b700bbd5fca92870; countryCode=US; eswikimwuser-sessionId=4915e08c36050526b59e; 539540=4686%2C4667%2C4677%2C1788%2C4712%2C5964%2C4700; _pubcid=ece84f3f-dc50-48de-854e-cda432646625; _pubcid_cst=zix7LPQsHA%3D%3D; _lr_retry_request=true; _lr_env_src_ats=false; _ga_N5PKF1XT49=GS1.1.1734574846.1.1.1734574860.0.0.0; _cc_id=accef02ea499e10beb301190e0f61fe6; panoramaId=83e2d7a9fcaac91aa87c01b4ac9d185ca02ce0cb7af7bcc6b7da48c53496c1bb; _gd_visitor=af42fcde-dcf8-4323-8946-2578bdea80ac; _gd_session=6c6fb936-5b4b-47a5-8303-795518470a97; cto_bundle=eVzvTl9ZcWYyNnlrQW91VDk4YUdMRHpRUzNWSEc5aUI4djEzTEVjbml5bVdlSFhXSmg2WGR2MjUzNktrRTc3JTJGakhDJTJGWGxqJTJCY3VUJTJGVUtCeXpHd056bEl0ODlTZzc1MFZGZ1o0eXRtaHN2MlI4d3lCYk9HODdYUnA3V0FWc2Y4ZmN3aXNv; cto_bidid=XmqVkF9YMlJId1RjaG1mR05uWEN4Q1hqaVBFQWlIcDBHdExBWmtoV296alowNzRBYUUweDZFd3olMkJHUlZFbzhZY00yRUtHTDBqbjNwOGh4UlZQOWg3VElRRkNBJTNEJTNE; panoramaId_expiry=1735179660603; _gcl_au=1.1.32206904.1734574862; __gads=ID=fbdbc7ee7449e157:T=1734574861:RT=1734574861:S=ALNI_MbCaALAfiefW_OYhxpAWlry9I3qzw; __gpi=UID=00000f74b9bde535:T=1734574861:RT=1734574861:S=ALNI_MYPQofRDnCtiDGPgCVHUpcnGXFHBw; __eoi=ID=70875c45456317b2:T=1734574861:RT=1734574861:S=AA-AfjZfDApCudq1ooc7-yJ0yTxV; _clsk=rx2k41%7C1734574862032%7C4%7C1%7Cn.clarity.ms%2Fcollect; _ga_DWCCJLKX3X=GS1.1.1734574860.1.0.1734574862.58.0.0; hb_insticator_uid=4478a999-c77d-4342-a86c-b00ab3cbb17b
HTTP_CACHE_CONTROL
no-cache
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_CDN_LOOP
cloudflare; loops=1; subreqs=1
HTTP_CF_EW_VIA
15
HTTP_SEC_FETCH_SITE
same-origin
HTTP_PRIORITY
u=0, i
HTTP_SEC_CH_UA
"HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"
HTTP_CF_WORKER
paperai.life
HTTP_SEC_CH_UA_MOBILE
?0
HTTP_SEC_CH_UA_PLATFORM
"Windows"
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_SEC_FETCH_DEST
empty
HTTP_X_FORWARDED_PROTO
https
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_SEC_FETCH_MODE
navigate
HTTP_ORIGIN
https://www.knowpia.com
HTTP_X_FORWARDED_FOR
3.140.197.103
HTTP_CF_RAY
8f43eac1c629232f-ORD
proxy-nokeepalive
1
H2_STREAM_TAG
8003-1
H2_STREAM_ID
1
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
www.knowpia.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
8003-1
REDIRECT_H2_STREAM_ID
1
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
www.knowpia.com
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/pedia/wiki/index/Moscow_Central_Bus_Terminal
REQUEST_TIME_FLOAT
1734574863.7107
REQUEST_TIME
1734574863
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
ROOT_URL
https://www.knowpia.com
DEF_AVATAR
https://www.knowpia.com/static/images/default_avatar.jpg
APP_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../application/
RUNTIME_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1734574863.711
THINK_START_MEM
448832
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/thinkphp/
LIB_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/thinkphp/library/
CORE_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/
EXTEND_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/extend/
VENDOR_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/vendor/
LOG_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../runtime/log/
CACHE_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../runtime/temp/
CONF_PATH
/www/wwwroot/www.knowpia.com/entest_2019_06_01/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
UID
0