[1045] PDOException in Connection.php line 293

SQLSTATE[HY000] [1045] Access denied for user 'youhe'@'127.0.0.1' (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 293
  2. at PDO->__construct('mysql:host=localhost...', 'youhe', 'J5J8X5x4', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 990
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 65
  6. at Mysql->getFields('cms_goods_type') in Query.php line 1862
  7. at Query->getTableInfo('cms_goods_type', 'type') in Query.php line 1910
  8. at Query->getFieldsType('cms_goods_type') in Query.php line 1916
  9. at Query->getFieldsBind('cms_goods_type') in Builder.php line 264
  10. at Builder->buildWhere(['AND' => ['type' => ['eq', 1]]], ['multi' => ['AND' => ['type' => [['eq', 1]]]], 'where' => ['AND' => ['type' => ['eq', 1]]], 'order' => ['sort desc'], ...]) in Builder.php line 234
  11. at Builder->parseWhere(['AND' => ['type' => ['eq', 1]]], ['multi' => ['AND' => ['type' => [['eq', 1]]]], 'where' => ['AND' => ['type' => ['eq', 1]]], 'order' => ['sort desc'], ...]) in Builder.php line 710
  12. at Builder->select(['multi' => ['AND' => ['type' => [['eq', 1]]]], 'where' => ['AND' => ['type' => ['eq', 1]]], 'order' => ['sort desc'], ...]) in Query.php line 2443
  13. at Query->select() in Base.php line 25
  14. at Base->_initialize() in Controller.php line 59
  15. at Controller->__construct(object(Request))
  16. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  17. at App::invokeClass('app\index\controller...') in Loader.php line 482
  18. at Loader::controller('index', 'controller', false, 'Error') in App.php line 572
  19. at App::module(['index', 'index', 'details'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  20. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'details']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  21. at App::run() in start.php line 19
  22. at require('D:\wwwroot\youhe\www...') in index.php line 17

Environment Variables

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

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-af6c2ce0-6a9c-4a47-b53c-e82dd7d997a1
PHPRC
D:\SOFT_PHP_PACKAGE\php5.5
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\jifan\jifan.config
APP_POOL_ID
jifan
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
EBS-37819
ComSpec
C:\Windows\system32\cmd.exe
DEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
D:\SOFT_PHP_PACKAGE\mysql5.7\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;D:\SOFT_PHP_PACKAGE\php7.2;D:\composer;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
EBS-37819$
USERPROFILE
C:\Windows\system32\config\systemprofile
VSEDEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO
/index.php/index/index/details/id/386.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
youhe190429.ec666.net
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
d:\wwwroot\youhe\wwwroot\index.php
REQUEST_URI
/index.php/index/index/details/id/386.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
24867
REMOTE_HOST
127.0.0.1
REMOTE_ADDR
127.0.0.1
QUERY_STRING
PATH_TRANSLATED
d:\wwwroot\youhe\wwwroot\index.php\index\index\details\id\386.html
PATH_INFO
/index/index/details/id/386.html
LOGON_USER
LOCAL_ADDR
127.0.0.1
INSTANCE_META_PATH
/LM/W3SVC/10052
INSTANCE_NAME
YOUHE
INSTANCE_ID
10052
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
d:\wwwroot\youhe\wwwroot
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
d:\wwwroot\youhe\wwwroot\
APPL_MD_PATH
/LM/W3SVC/10052/ROOT
IIS_UrlRewriteModule
7.1.0871.0
HTTP_X_REAL_IP
3.226.254.255
HTTP_X_FORWARDED_FOR
3.226.254.255
HTTP_USER_AGENT
claudebot
HTTP_HOST
youhe190429.ec666.net
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
close
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/index/details/id/386.html
REQUEST_TIME_FLOAT
1711619125.5488
REQUEST_TIME
1711619125
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\youhe\wwwroot\/application/
THINK_VERSION
5.0.18
THINK_START_TIME
1711619125.5488
THINK_START_MEM
152136
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\youhe\wwwroot\thinkphp\
LIB_PATH
D:\wwwroot\youhe\wwwroot\thinkphp\library\
CORE_PATH
D:\wwwroot\youhe\wwwroot\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\youhe\wwwroot\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\youhe\wwwroot\
EXTEND_PATH
D:\wwwroot\youhe\wwwroot\extend\
VENDOR_PATH
D:\wwwroot\youhe\wwwroot\vendor\
RUNTIME_PATH
D:\wwwroot\youhe\wwwroot\runtime\
LOG_PATH
D:\wwwroot\youhe\wwwroot\runtime\log\
CACHE_PATH
D:\wwwroot\youhe\wwwroot\runtime\cache\
TEMP_PATH
D:\wwwroot\youhe\wwwroot\runtime\temp\
CONF_PATH
D:\wwwroot\youhe\wwwroot\/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
ENTRANCE_NAME
index.php
CONTROLLER_NAME
Index
ACTION_NAME
details
MODULE_NAME
index