[1045] PDOException in Connection.php line 295

SQLSTATE[HY000] [1045] Access denied for user 'tgxt'@'localhost' (using password: YES)

  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...', 'tgxt', 'rtiMycMETRDR7Emm', [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 `t...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('tg_article') in Query.php line 1921
  7. at Query->getTableInfo('tg_article', 'pk') in Query.php line 1955
  8. at Query->getPk(['table' => 'tg_article', 'where' => [], 'field' => '*', ...]) in Query.php line 2639
  9. at Query->find(2142) in Model.php line 1707
  10. at Model::get(2142) in Article.php line 14
  11. at Article->detail()
  12. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  13. at App::invokeMethod([object(Article), 'detail'], []) in App.php line 611
  14. at App::module(['index', 'article', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  15. at App::exec(['type' => 'module', 'module' => ['index', 'article', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/www/wwwroot/thkjgs/...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

schemes
think:[{"id":"15","name":"%E8%A1%8C%E4%B8%9A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","children":{"695":"%E6%97%85%E6%B8%B8%E5%87%BA%E8%A1%8C","696":"%E9%85%92%E5%BA%97%E5%AE%BE%E9%A6%86","697":"%E6%B1%BD%E8%BD%A6%E6%9C%8D%E5%8A%A1","698":"%E9%A4%90%E9%A5%AE%E8%A1%8C%E4%B8%9A","699":"%E5%88%B6%E9%80%A0%E4%B8%9A","700":"%E5%95%86%E8%B6%85%E9%9B%B6%E5%94%AE","701":"VR%2FAR"}},{"id":"16","name":"%E5%B7%A5%E4%B8%9A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","children":{"702":"%E7%89%A9%E8%81%94%E7%BD%91%E6%9C%8D%E5%8A%A1","703":"%E6%99%BA%E8%83%BD%E5%88%B6%E9%80%A0"}},{"id":"17","name":"%E5%A4%A7%E6%95%B0%E6%8D%AE%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","children":{"704":"%E4%BD%8D%E7%BD%AE%E6%9C%8D%E5%8A%A1","705":"%E4%BA%BA%E8%84%B8%E8%AF%86%E5%88%AB%E6%9C%8D%E5%8A%A1","706":"%E6%95%B0%E5%AD%97%E8%90%A5%E9%94%80","707":"%E6%97%85%E6%B8%B8","708":"%E5%B7%A5%E4%B8%9A%E5%A4%A7%E6%95%B0%E6%8D%AE","709":"%E6%94%BF%E5%8A%A1"}},{"id":"18","name":"%E5%AE%89%E5%85%A8%E4%B8%8E%E8%BF%90%E7%BB%B4%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","children":{"710":"%E8%BF%90%E7%BB%B4%E6%9C%8D%E5%8A%A1","711":"%E9%80%9A%E7%94%A8%E5%AE%89%E5%85%A8"}},{"id":"19","name":"%E9%80%9A%E7%94%A8%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","children":{"712":"%E4%BC%81%E4%B8%9A%E5%BB%BA%E7%AB%99","713":"%E6%B7%B7%E5%90%88%E4%BA%91","714":"%E4%BA%91%E8%BF%81%E7%A7%BB"}}]
scheme
think:{"695":"%E6%97%85%E6%B8%B8%E5%87%BA%E8%A1%8C","696":"%E9%85%92%E5%BA%97%E5%AE%BE%E9%A6%86","697":"%E6%B1%BD%E8%BD%A6%E6%9C%8D%E5%8A%A1","698":"%E9%A4%90%E9%A5%AE%E8%A1%8C%E4%B8%9A","699":"%E5%88%B6%E9%80%A0%E4%B8%9A","700":"%E5%95%86%E8%B6%85%E9%9B%B6%E5%94%AE","701":"VR%2FAR","702":"%E7%89%A9%E8%81%94%E7%BD%91%E6%9C%8D%E5%8A%A1","703":"%E6%99%BA%E8%83%BD%E5%88%B6%E9%80%A0","704":"%E4%BD%8D%E7%BD%AE%E6%9C%8D%E5%8A%A1","705":"%E4%BA%BA%E8%84%B8%E8%AF%86%E5%88%AB%E6%9C%8D%E5%8A%A1","706":"%E6%95%B0%E5%AD%97%E8%90%A5%E9%94%80","707":"%E6%97%85%E6%B8%B8","708":"%E5%B7%A5%E4%B8%9A%E5%A4%A7%E6%95%B0%E6%8D%AE","709":"%E6%94%BF%E5%8A%A1","710":"%E8%BF%90%E7%BB%B4%E6%9C%8D%E5%8A%A1","711":"%E9%80%9A%E7%94%A8%E5%AE%89%E5%85%A8","712":"%E4%BC%81%E4%B8%9A%E5%BB%BA%E7%AB%99","713":"%E6%B7%B7%E5%90%88%E4%BA%91","714":"%E4%BA%91%E8%BF%81%E7%A7%BB"}
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/thkjgs/index.php
QUERY_STRING
s=/index/article/detail/id/2142.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/article/detail/id/2142.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/thkjgs
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.0
REMOTE_ADDR
44.213.75.78
REMOTE_PORT
49438
SERVER_ADDR
172.26.32.244
SERVER_PORT
80
SERVER_NAME
thkjgs.com
REDIRECT_STATUS
200
PATH_INFO
/index/article/detail/id/2142.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
thkjgs.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711653025.1571
REQUEST_TIME
1711653025
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
/www/wwwroot/thkjgs/app/
DATA_PATH
/www/wwwroot/thkjgs/runtime/Data/
PLUGIN_PATH
/www/wwwroot/thkjgs/plugins/
THINK_VERSION
5.0.24
THINK_START_TIME
1711653025.1577
THINK_START_MEM
262360
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/thkjgs/think/
LIB_PATH
/www/wwwroot/thkjgs/think/library/
CORE_PATH
/www/wwwroot/thkjgs/think/library/think/
TRAIT_PATH
/www/wwwroot/thkjgs/think/library/traits/
ROOT_PATH
/www/wwwroot/thkjgs/
EXTEND_PATH
/www/wwwroot/thkjgs/extend/
VENDOR_PATH
/www/wwwroot/thkjgs/vendor/
RUNTIME_PATH
/www/wwwroot/thkjgs/runtime/
LOG_PATH
/www/wwwroot/thkjgs/runtime/log/
CACHE_PATH
/www/wwwroot/thkjgs/runtime/cache/
TEMP_PATH
/www/wwwroot/thkjgs/runtime/temp/
CONF_PATH
/www/wwwroot/thkjgs/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/index/article/detail/id/2142.html
ref
ent
claudebot
site
http://ttt.dfe82.com/
road
?road=thkjgs.com/index/article/detail/id/2142.html
memes
?road=thkjgs.com/index/article/detail/id/2142.html&referer=
regs
@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area
false