手机APP

在线咨询

关注微信

物料对比

董事长直达

一站式塑料原材料解决平台
系统发生错误

[1045] PDOException in Connection.php line 528

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

  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() in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2022
  4. at Connection->initConnect() in Connection.php line 644
  5. at Connection->query() in Mysql.php line 90
  6. at Mysql->getFields() in Connection.php line 377
  7. at Connection->getTableInfo() in Connection.php line 454
  8. at Connection->getFieldsBind() in Builder.php line 292
  9. at Builder->buildWhere() in Builder.php line 264
  10. at Builder->parseWhere() in Builder.php line 991
  11. at Builder->select() in Connection.php line 1277
  12. at Connection->value() in Query.php line 594
  13. at Query->value() in common.php line 223
  14. at get_default_lang() in common.php line 258
  15. at get_current_lang() in Common.php line 61
  16. at Common->_initialize() in Index.php line 25
  17. at Index->__construct()
  18. at ReflectionClass->newInstanceArgs() in Container.php line 439
  19. at Container->invokeClass() in Container.php line 284
  20. at Container->make() in App.php line 725
  21. at App->controller() in Module.php line 95
  22. at Module->exec() in Dispatch.php line 168
  23. at Dispatch->run() in App.php line 432
  24. at App->think\{closure}()
  25. at call_user_func_array() in Middleware.php line 185
  26. at Middleware->think\{closure}()
  27. at call_user_func() in Middleware.php line 130
  28. at Middleware->dispatch() in App.php line 435
  29. at App->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
PATH_TRANSLATED redirect:/index.php/list/3.html/3.html
PATH_INFO /list/3.html
SCRIPT_NAME /index.php
REQUEST_URI /list/3.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /list/3.html
REMOTE_PORT 24077
SCRIPT_FILENAME /www/wwwroot/bx.mic.gd.cn/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/bx.mic.gd.cn/
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /www/wwwroot/bx.mic.gd.cn/
REMOTE_ADDR 216.73.217.126
SERVER_PORT 443
SERVER_ADDR 211.149.190.237
SERVER_NAME bx.mic.gd.cn
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at bx.mic.gd.cn Port 443</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST bx.mic.gd.cn
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
proxy-nokeepalive 1
H2_STREAM_TAG 21139-3-1
H2_STREAM_ID 1
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
SSL_TLS_SNI bx.mic.gd.cn
HTTPS on
REDIRECT_STATUS 200
REDIRECT_H2_STREAM_TAG 21139-3-1
REDIRECT_H2_STREAM_ID 1
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH off
REDIRECT_H2PUSH off
REDIRECT_HTTP2 on
REDIRECT_SSL_TLS_SNI bx.mic.gd.cn
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php/list/3.html
REQUEST_TIME_FLOAT 1788343890.6689
REQUEST_TIME 1788343890
Environment Variablesempty
ThinkPHP Constants
EXTEND_PATH /home/wwwroot/bx.mic.gd.cn/extend/