[1045] PDOException in Connection.php line 295

SQLSTATE[HY000] [1045] Access denied for user 'ask_daimare_com'@'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...', 'ask_daimare_com', 'zXwsNwH62X36YD7Y', [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 `f...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`fa_ask_zone`') in Query.php line 1921
  7. at Query->getTableInfo('fa_ask_zone', 'type') in Query.php line 1969
  8. at Query->getFieldsType('fa_ask_zone') in Query.php line 1975
  9. at Query->getFieldsBind('fa_ask_zone') in Builder.php line 270
  10. at Builder->buildWhere(['AND' => ['status' => ['eq', 'normal'], 'isnav' => ['eq', 1]]], ['multi' => ['AND' => ['status' => [['eq', 'normal']], 'isnav' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 'normal'], 'isnav' => ['eq', 1]]], 'limit' => '10', ...]) in Builder.php line 240
  11. at Builder->parseWhere(['AND' => ['status' => ['eq', 'normal'], 'isnav' => ['eq', 1]]], ['multi' => ['AND' => ['status' => [['eq', 'normal']], 'isnav' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 'normal'], 'isnav' => ['eq', 1]]], 'limit' => '10', ...]) in Builder.php line 719
  12. at Builder->select(['multi' => ['AND' => ['status' => [['eq', 'normal']], 'isnav' => [['eq', 1]]]], 'where' => ['AND' => ['status' => ['eq', 'normal'], 'isnav' => ['eq', 1]]], 'limit' => '10', ...]) in Query.php line 2511
  13. at Query->select() in Base.php line 40
  14. at Base->__construct(object(Request)) in Route.php line 59
  15. at Route->execute('ask', 'index', 'index')
  16. at ReflectionMethod->invokeArgs(object(Route), ['ask', 'index', 'index']) in App.php line 343
  17. at App::invokeMethod(['\think\addons\Route', 'execute'], ['addon' => 'ask', 'controller' => 'index', 'action' => 'index']) in App.php line 470
  18. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'ask', 'controller' => 'index', 'action' => 'index']], ['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('/www/wwwroot/www.thr...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.threegeek.com./
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.threegeek.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.threegeek.com
SERVER_PORT
443
SERVER_ADDR
10.0.4.4
REMOTE_PORT
46464
REMOTE_ADDR
18.212.102.174
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.threegeek.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/www.threegeek.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711665154.1559
REQUEST_TIME
1711665154
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.threegeek.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711665154.1564
THINK_START_MEM
404072
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.threegeek.com/thinkphp/
LIB_PATH
/www/wwwroot/www.threegeek.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.threegeek.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.threegeek.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.threegeek.com/
EXTEND_PATH
/www/wwwroot/www.threegeek.com/extend/
VENDOR_PATH
/www/wwwroot/www.threegeek.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.threegeek.com/runtime/
LOG_PATH
/www/wwwroot/www.threegeek.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.threegeek.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.threegeek.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.threegeek.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.threegeek.com/addons/