Hot line: 0757-83555878


News

More news

System Error

[1045] PDOException in Connection.php line 293

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

  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 293
  2. at PDO->__construct('mysql:dbname=;host=1...', 'root', '', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 968
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 62
  6. at Mysql->getFields('config') in Query.php line 1739
  7. at Query->getTableInfo('config', 'type') in Query.php line 1787
  8. at Query->getFieldsType('config') in Query.php line 1793
  9. at Query->getFieldsBind('config') in Builder.php line 254
  10. at Builder->buildWhere(['AND' => ['key' => 'conf']], ['multi' => ['AND' => ['key' => ['conf']]], 'where' => ['AND' => ['key' => 'conf']], 'table' => 'config', ...]) in Builder.php line 224
  11. at Builder->parseWhere(['AND' => ['key' => 'conf']], ['multi' => ['AND' => ['key' => ['conf']]], 'where' => ['AND' => ['key' => 'conf']], 'table' => 'config', ...]) in Builder.php line 675
  12. at Builder->select(['multi' => ['AND' => ['key' => ['conf']]], 'where' => ['AND' => ['key' => 'conf']], 'table' => 'config', ...]) in Query.php line 2452
  13. at Query->find() in Config.php line 23
  14. at Config->getConfByKey('conf') in BaseController.php line 35
  15. at BaseController->_initialize() in ListController.php line 14
  16. at ListController->_initialize() in Controller.php line 56
  17. at Controller->__construct(object(Request))
  18. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  19. at App::invokeClass('app\index\controller...') in Loader.php line 420
  20. at Loader::controller('list', 'controller', true, 'Error') in App.php line 390
  21. at App::module(['Index', 'list', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  22. at App::exec(['type' => 'module', 'module' => ['Index', 'list', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  23. at App::run() in start.php line 18
  24. at require('/data/wwwroot/baboen...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
baboentc.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at baboentc.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
baboentc.com
SERVER_ADDR
110.42.1.180
SERVER_PORT
80
REMOTE_ADDR
54.227.104.229
DOCUMENT_ROOT
/data/wwwroot/baboen_baboentc.com_201700818/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/wwwroot/baboen_baboentc.com_201700818/public
SERVER_ADMIN
www.baboentc.com
SCRIPT_FILENAME
/data/wwwroot/baboen_baboentc.com_201700818/public/index.php
REMOTE_PORT
38204
REDIRECT_URL
/list/6.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/list/6.html
SCRIPT_NAME
/index.php
PATH_INFO
/list/6.html
PATH_TRANSLATED
redirect:/index.php/list/6.html/6.html
PHP_SELF
/index.php/list/6.html
REQUEST_TIME_FLOAT
1711656637.1918
REQUEST_TIME
1711656637
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/wwwroot/baboen_baboentc.com_201700818/public/../application/
THINK_VERSION
5.0.10
THINK_START_TIME
1711656637.1944
THINK_START_MEM
262968
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/baboen_baboentc.com_201700818/thinkphp/
LIB_PATH
/data/wwwroot/baboen_baboentc.com_201700818/thinkphp/library/
CORE_PATH
/data/wwwroot/baboen_baboentc.com_201700818/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/baboen_baboentc.com_201700818/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/baboen_baboentc.com_201700818/
EXTEND_PATH
/data/wwwroot/baboen_baboentc.com_201700818/extend/
VENDOR_PATH
/data/wwwroot/baboen_baboentc.com_201700818/vendor/
RUNTIME_PATH
/data/wwwroot/baboen_baboentc.com_201700818/runtime/
LOG_PATH
/data/wwwroot/baboen_baboentc.com_201700818/runtime/log/
CACHE_PATH
/data/wwwroot/baboen_baboentc.com_201700818/runtime/cache/
TEMP_PATH
/data/wwwroot/baboen_baboentc.com_201700818/runtime/temp/
CONF_PATH
/data/wwwroot/baboen_baboentc.com_201700818/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false