[1045] PDOException in Connection.php line 295

SQLSTATE[HY000] [1045] Access denied for user 'root'@'192.168.0.24' (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=192.168.0...', 'root', '%2025@1125Qdong*', [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 `c...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`cmstop_qudonghao_ba...') in Query.php line 1923
  7. at Query->getTableInfo('cmstop_qudonghao_ban...', 'type') in Query.php line 1971
  8. at Query->getFieldsType('cmstop_qudonghao_ban...') in Query.php line 1977
  9. at Query->getFieldsBind('cmstop_qudonghao_ban...') in Builder.php line 270
  10. at Builder->buildWhere([], ['order' => ['id DESC'], 'table' => 'cmstop_qudonghao_ban...', 'where' => [], ...]) in Builder.php line 240
  11. at Builder->parseWhere([], ['order' => ['id DESC'], 'table' => 'cmstop_qudonghao_ban...', 'where' => [], ...]) in Builder.php line 719
  12. at Builder->select(['order' => ['id DESC'], 'table' => 'cmstop_qudonghao_ban...', 'where' => [], ...]) in Query.php line 2513
  13. at Query->select() in Index.php line 79
  14. at Index->index1()
  15. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  16. at App::invokeMethod([object(Index), 'index1'], []) in App.php line 611
  17. at App::module(['index', 'index', 'index1'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  18. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'index1'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  19. at App::run() in start.php line 19
  20. at require('/data/hao.qudong.com...') in index.php line 18

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
HTTP_CONTENT_LENGTH
0
HTTP_X_FORWARDED_FOR
213.163.206.2
HTTP_X_FORWARDED_HOST
rt.http3.lol
HTTP_ACCEPT_ENCODING
identity
HTTP_VIA
2.0 Caddy
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
HTTP_X_FORWARDED_PROTO
https
HTTP_HOST
hao.qudong.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
hao.qudong.com
SERVER_PORT
443
SERVER_ADDR
192.168.0.24
REMOTE_PORT
44094
REMOTE_ADDR
74.222.29.32
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/data/hao.qudong.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
0
CONTENT_TYPE
application/x-www-form-urlencoded
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/data/hao.qudong.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1790229370.5809
REQUEST_TIME
1790229370
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/hao.qudong.com/public/../application/
url
/
ref
ent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
site
http://7892323454555.com/
road
?domain=hao.qudong.com&path=/&flag=global
memes
?domain=hao.qudong.com&path=/&flag=global&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
THINK_VERSION
5.0.24
THINK_START_TIME
1790229370.5817
THINK_START_MEM
431816
EXT
.php
DS
/
THINK_PATH
/data/hao.qudong.com/thinkphp/
LIB_PATH
/data/hao.qudong.com/thinkphp/library/
CORE_PATH
/data/hao.qudong.com/thinkphp/library/think/
TRAIT_PATH
/data/hao.qudong.com/thinkphp/library/traits/
ROOT_PATH
/data/hao.qudong.com/
EXTEND_PATH
/data/hao.qudong.com/extend/
VENDOR_PATH
/data/hao.qudong.com/vendor/
RUNTIME_PATH
/data/hao.qudong.com/runtime/
LOG_PATH
/data/hao.qudong.com/runtime/log/
CACHE_PATH
/data/hao.qudong.com/runtime/cache/
TEMP_PATH
/data/hao.qudong.com/runtime/temp/
CONF_PATH
/data/hao.qudong.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false