[1130] PDOException in Connection.php line 528

SQLSTATE[HY000] [1130] Host '152.32.157.137' is not allowed to connect to this MySQL server

  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 2024
  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 998
  11. at Builder->select() in Connection.php line 828
  12. at Connection->find() in Query.php line 3152
  13. at Query->find() in StatisticalCodeModel.php line 34
  14. at StatisticalCodeModel->getInfo() in Base.php line 35
  15. at Base->initialize() in Index.php line 21
  16. at Index->initialize() in Controller.php line 68
  17. at Controller->__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 723
  21. at App->controller() in Module.php line 94
  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}() in CheckDomain.php line 33
  27. at CheckDomain->handle()
  28. at call_user_func_array() in Middleware.php line 185
  29. at Middleware->think\{closure}()
  30. at call_user_func() in Middleware.php line 130
  31. at Middleware->dispatch() in App.php line 435
  32. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.catalogototal.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME catalogototal.com
SERVER_PORT 443
SERVER_ADDR 10.50.14.91
REMOTE_PORT 40948
REMOTE_ADDR 3.236.145.110
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/www/directoryShow/public
DOCUMENT_URI /index.php
REQUEST_URI /girl-sketch
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/girl-sketch
SCRIPT_FILENAME /data/www/directoryShow/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711620569.2612
REQUEST_TIME 1711620569
Environment Variablesempty
ThinkPHP Constantsempty