[1045] PDOException in Connection.php line 295

SQLSTATE[HY000] [1045] Access denied for user '900sc'@'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...', '900sc', 'jcGiisKW3YNsLX8c', [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 `m...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('`mac_group`') in Query.php line 1921
  7. at Query->getTableInfo('mac_group', 'type') in Query.php line 1969
  8. at Query->getFieldsType('mac_group') in Query.php line 1975
  9. at Query->getFieldsBind('mac_group') in Builder.php line 270
  10. at Builder->buildWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Builder.php line 240
  11. at Builder->parseWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Builder.php line 720
  12. at Builder->select(['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Query.php line 2462
  13. at Query->getPdo() in Query.php line 441
  14. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 576
  15. at Query->aggregate('COUNT', '*', true) in Query.php line 551
  16. at Query->count() in Group.php line 27
  17. at Group->listData([], 'group_id asc') in Group.php line 120
  18. at Group->setCache() in Group.php line 132
  19. at Group->getCache() in All.php line 132
  20. at All->label_user() in Base.php line 17
  21. at Base->__construct() in Index.php line 8
  22. at Index->__construct()
  23. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  24. at App::invokeClass('app\index\controller...') in Loader.php line 479
  25. at Loader::controller('index', 'controller', false, 'MyError') in App.php line 580
  26. at App::module(['index', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  27. at App::exec(['type' => 'module', 'module' => ['index', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  28. at App::run() in start.php line 19
  29. at require('/www/wwwroot/007ar.c...') in index.php line 39

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.ruisiguan.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
007ar.com
SERVER_PORT
443
SERVER_ADDR
38.11.235.17
REMOTE_PORT
60268
REMOTE_ADDR
34.230.84.106
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/007ar.com
DOCUMENT_URI
/index.php
REQUEST_URI
/226681.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/007ar.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710842673.8415
REQUEST_TIME
1710842673
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/007ar.com/
APP_PATH
/www/wwwroot/007ar.com/application/
MAC_COMM
/www/wwwroot/007ar.com/application/common/common/
MAC_HOME_COMM
/www/wwwroot/007ar.com/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/007ar.com/application/admin/common/
MAC_START_TIME
1710842673.842
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1710842673.8426
THINK_START_MEM
416504
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/007ar.com/thinkphp/
LIB_PATH
/www/wwwroot/007ar.com/thinkphp/library/
CORE_PATH
/www/wwwroot/007ar.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/007ar.com/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/007ar.com/extend/
VENDOR_PATH
/www/wwwroot/007ar.com/vendor/
RUNTIME_PATH
/www/wwwroot/007ar.com/runtime/
LOG_PATH
/www/wwwroot/007ar.com/runtime/log/
CACHE_PATH
/www/wwwroot/007ar.com/runtime/cache/
TEMP_PATH
/www/wwwroot/007ar.com/runtime/temp/
CONF_PATH
/www/wwwroot/007ar.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/007ar.com/addons/
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/www/wwwroot/007ar.com/template/stui_tpl/html/
MAC_PATH_TEMPLATE
/template/stui_tpl/
MAC_PATH_TPL
/template/stui_tpl/html/
MAC_PATH_ADS
/template/stui_tpl/ads/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/www/wwwroot/007ar.com/addons/
MAC_ADDON_PATH_STATIC
/www/wwwroot/007ar.com/static/addons/