级别

二手车导购/二手车注意事项,看我您就懂!

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 Mysql.php line 54
  5. at Mysql->getFields('baseinfo') in Query.php line 1739
  6. at Query->getTableInfo('baseinfo', 'pk') in Query.php line 1773
  7. at Query->getPk(['table' => 'baseinfo', 'where' => [], 'field' => '*', ...]) in Query.php line 2428
  8. at Query->find() in Index.php line 25
  9. at Index->maiches()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 196
  11. at App::invokeMethod([object(Index), 'maiches'], []) in App.php line 408
  12. at App::module(['index', 'index', 'maiches'], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...], false) in App.php line 295
  13. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'maiches'], 'convert' => false], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...]) in App.php line 123
  14. at App::run() in start.php line 18
  15. at require('/wwwc/www.hy2sc.net/...') in index.php line 19

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
SCRIPT_FILENAME
/wwwc/www.hy2sc.net/public/index.php
QUERY_STRING
s=/maiche.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/maiche.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/wwwc/www.hy2sc.net/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
44.211.84.185
REMOTE_PORT
53978
SERVER_ADDR
122.114.65.144
SERVER_PORT
80
SERVER_NAME
www.hy2sc.net
REDIRECT_STATUS
200
PATH_INFO
/maiche.html
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_IF_MODIFIED_SINCE
Wed, 08 Feb 2023 16:18:20 GMT
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_HOST
hy2sc.net
HTTP_CONNECTION
Keep-Alive
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1685442074.7414
REQUEST_TIME
1685442074
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/wwwc/www.hy2sc.net/public/../application/
THINK_VERSION
5.0.9
THINK_START_TIME
1685442074.7421
THINK_START_MEM
263464
EXT
.php
DS
/
THINK_PATH
/wwwc/www.hy2sc.net/thinkphp/
LIB_PATH
/wwwc/www.hy2sc.net/thinkphp/library/
CORE_PATH
/wwwc/www.hy2sc.net/thinkphp/library/think/
TRAIT_PATH
/wwwc/www.hy2sc.net/thinkphp/library/traits/
ROOT_PATH
/wwwc/www.hy2sc.net/
EXTEND_PATH
/wwwc/www.hy2sc.net/extend/
VENDOR_PATH
/wwwc/www.hy2sc.net/vendor/
RUNTIME_PATH
/wwwc/www.hy2sc.net/runtime/
LOG_PATH
/wwwc/www.hy2sc.net/runtime/log/
CACHE_PATH
/wwwc/www.hy2sc.net/runtime/cache/
TEMP_PATH
/wwwc/www.hy2sc.net/runtime/temp/
CONF_PATH
/wwwc/www.hy2sc.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false