#0 [2000]PDOException in PDOConnection.php line 568

SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

  1. * 创建PDO实例
  2. * @param $dsn
  3. * @param $username
  4. * @param $password
  5. * @param $params
  6. * @return PDO
  7. */
  8. protected function createPdo($dsn, $username, $password, $params)
  9. {
  10. return new PDO($dsn, $username, $password, $params);
  11. }
  12. /**
  13. * 释放查询结果
  14. * @access public
  15. */
  16. public function free(): void
  17. {
  18. $this->PDOStatement = null;

Call Stack

  1. in PDOConnection.php line 568
  2. at PDO->__construct('mysql:host=xdm371251...', 'xdm371251150', 'LIUdeng1', [0, 2, 0, ...]) in PDOConnection.php line 568
  3. at PDOConnection->createPdo('mysql:host=xdm371251...', 'xdm371251150', 'LIUdeng1', [0, 2, 0, ...]) in PDOConnection.php line 529
  4. at PDOConnection->connect() in PDOConnection.php line 1655
  5. at PDOConnection->initConnect(false) in PDOConnection.php line 731
  6. at PDOConnection->getPDOStatement('SHOW FULL COLUMNS FR...') in Mysql.php line 66
  7. at Mysql->getFields('`language`') in PDOConnection.php line 396
  8. at PDOConnection->getTableFieldsInfo('language') in PDOConnection.php line 336
  9. at PDOConnection->getSchemaInfo('language') in PDOConnection.php line 383
  10. at PDOConnection->getTableInfo('language', 'type') in PDOConnection.php line 467
  11. at PDOConnection->getFieldsType('language') in TableFieldInfo.php line 58
  12. at Query->getFieldsType() in TableFieldInfo.php line 69
  13. at Query->getFieldType('create_time')
  14. at call_user_func_array([object(Query), 'getFieldType'], ['create_time']) in Model.php line 1036
  15. at Model->__call('getFieldType', ['create_time']) in TimeStamp.php line 73
  16. at Model->checkTimeFieldType(true) in TimeStamp.php line 54
  17. at Model->isAutoWriteTimestamp(true) in ModelService.php line 35
  18. at ModelService->think\service\{closure}(object(Language))
  19. at call_user_func(object(Closure), object(Language)) in Model.php line 242
  20. at Model->__construct() in Model.php line 1045
  21. at Model::__callStatic('where', ['is_default', '1']) in BaseIndex.php line 199
  22. at BaseIndex->lang() in BaseIndex.php line 43
  23. at BaseIndex->initialize() in BaseController.php line 50
  24. at BaseController->__construct(object(App))
  25. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 395
  26. at Container->invokeClass('app\index\controller...', []) in Container.php line 254
  27. at Container->make('app\index\controller...', [], true) in Controller.php line 176
  28. at Controller->controller('Index') in Controller.php line 74
  29. at Controller->exec() in Dispatch.php line 89
  30. at Dispatch->run() in Route.php line 760
  31. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  32. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  33. at Pipeline->then(object(Closure)) in Route.php line 761
  34. at Route->dispatch(object(Request), object(Closure)) in Http.php line 210
  35. at Http->dispatchToRoute(object(Request)) in Http.php line 200
  36. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  37. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  38. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  39. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  40. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  41. at MultiApp->handle(object(Request), object(Closure))
  42. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  43. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  44. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  45. at SessionInit->handle(object(Request), object(Closure))
  46. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  47. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  48. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  49. at TraceDebug->handle(object(Request), object(Closure))
  50. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  51. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  52. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  53. at Pipeline->then(object(Closure)) in Http.php line 201
  54. at Http->runWithRequest(object(Request)) in Http.php line 162
  55. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT
/usr/home/xyu3743720001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.0769noves.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php72/hichina_ini/xyu3743720001
QUERY_STRING
REDIRECT_STATUS
200
REMOTE_ADDR
168.76.22.185
REMOTE_PORT
20001
REQUEST_METHOD
GET
REQUEST_URI
/
SCRIPT_FILENAME
/usr/home/xyu3743720001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
47.52.4.8
SERVER_ADMIN
webmaster@xyu3743720001.my3w.com
SERVER_NAME
www.0769noves.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
YaMk2wocr4AAAAWuwvEAAABe
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1638081755.1766
REQUEST_TIME
1638081755
0.310677s