[1045] PDOException in Connection.php line 528

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

  1. try {
  2. if (empty($config['dsn'])) {
  3. $config['dsn'] = $this->parseDsn($config);
  4. }
  5. if ($config['debug']) {
  6. $startTime = microtime(true);
  7. }
  8. $this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
  9. if ($config['debug']) {
  10. // 记录数据库连接信息
  11. $this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
  12. }
  13. return $this->links[$linkNum];
  14. } catch (\PDOException $e) {
  15. if ($autoConnection) {

Call Stack

  1. in Connection.php line 528
  2. at PDO->__construct('mysql:host=rm-3ns6rn...', 'root', 'Adksfsdj544!@##&*#$', [0, 2, 0, ...]) in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2024
  4. at Connection->initConnect(false) in Connection.php line 644
  5. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 90
  6. at Mysql->getFields('`cmf_hook`') in Connection.php line 377
  7. at Connection->getTableInfo('cmf_hook', 'bind') in Connection.php line 454
  8. at Connection->getFieldsBind('cmf_hook') in Builder.php line 292
  9. at Builder->buildWhere(object(Query), ['AND' => [['type', '=', 1]], 'OR' => [object(Closure)]]) in Builder.php line 264
  10. at Builder->parseWhere(object(Query), ['AND' => [['type', '=', 1]], 'OR' => [object(Closure)]]) in Builder.php line 998
  11. at Builder->select(object(Query)) in Connection.php line 1370
  12. at Connection->column(object(Query), ['hook'], '') in Query.php line 628
  13. at Query->column('hook') in InitHookBehavior.php line 37
  14. at InitHookBehavior->run(null)
  15. at ReflectionMethod->invokeArgs(object(InitHookBehavior), [null]) in Container.php line 373
  16. at Container->invokeMethod(['cmf\behavior\InitHoo...', 'run'], [null]) in Container.php line 411
  17. at Container->invoke(['cmf\behavior\InitHoo...', 'run'], [null]) in Hook.php line 208
  18. at Hook->execTag('cmf\behavior\InitHoo...', 'app_init', null) in Hook.php line 149
  19. at Hook->listen('app_init') in App.php line 280
  20. at App->initialize() in App.php line 427
  21. at App->run() in index.php line 33

Environment Variables

GET Data
s /odds/2692159.html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.mcjtj.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME btyy2x.cn
SERVER_PORT 80
SERVER_ADDR 172.21.25.185
REMOTE_PORT 55408
REMOTE_ADDR 3.83.81.42
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/sport123/public
DOCUMENT_URI /index.php
REQUEST_URI /odds/2692159.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/odds/2692159.html
SCRIPT_FILENAME /www/wwwroot/sport123/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711677670.096
REQUEST_TIME 1711677670
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG false
CMF_ROOT /www/wwwroot/sport123/
CMF_DATA /www/wwwroot/sport123/data/
APP_PATH /www/wwwroot/sport123/app/
WEB_ROOT /www/wwwroot/sport123/public/
FILTER_VALIDATE_BOOL 258
HTMLPURIFIER_PREFIX /www/wwwroot/sport123/vendor/ezyang/htmlpurifier/library