Cadastrar
→
$ex PDOException (8) "SQLSTATE[HY000] [1130] Host '172.16.11.12' is not allowed to connect to this Ma...
  • Properties (8)
  • Available methods (11)
  • toString
  • ⇄→
    public errorInfo -> array (3)
    $ex->errorInfo
    ⇄0 => string (5) "HY000"
    $ex->errorInfo[0]
    ⇄1 => integer 1130
    $ex->errorInfo[1]
    ⇄2 => string (68) "Host '172.16.11.12' is not allowed to connect to this MariaDB server"
    $ex->errorInfo[2]
    protected code -> integer 1130
    →
    protected file -> string (53) "/www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php"
    • File (25,1KB)
    • -rwxrwxrwx 1000 1000 25,1KB Nov 14 2021 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php
      
    protected line -> integer 41
    →
    protected message -> string (91) "SQLSTATE[HY000] [1130] Host '172.16.11.12' is not allowed to connect to this Ma...
    SQLSTATE[HY000] [1130] Host '172.16.11.12' is not allowed to connect to this MariaDB server
    
    private previous -> null
    private string -> string (0) ""
    →
    private trace -> Debug Backtrace (7)
    →
    <ROOT>/painel/pkj/server/pkjdb_2.php:41 PDO->__construct($dsn, $username, $passwd, $options)
    • Source
    • //        try {
              if ($servidor === "sqlite") {
                  $endereco = __DIR__ . '/' . $endereco;
                  $this->pdo = new PDO("sqlite:{$endereco}", null, null, array(
                      PDO::ATTR_PERSISTENT => true
                  ));
              } else {
      
      $this->pdo = new PDO("{$servidor}:host={$endereco};dbname={$base}" . (($servidor === "mysql") ? ";charset=UTF8" : ""), $usuario, $senha);
      } // } catch (Exception $exc) { // echo $exc->getTraceAsString(); // } finally { // // } }
    →
    <ROOT>/painel/pkj/server/pkjdb_2.php:567 Db->__construct($servidor, $endereco = null, $base = null, $usuario = null, $senha = null)
    • Source
    •     db_get_connection()->rollback_transaction();
      }
      
      function conectar() {
          if (conf::$pkj_bd_sis_conexao != null) {
              return true;
          }
      
      conf::$pkj_bd_sis_conexao = new Db(conf::$servidor, conf::$endereco, conf::$base, conf::$usuario, conf::$senha);
      } /** * * @return Db */ function db_get_connection() {
    →
    <ROOT>/painel/pkj/server/pkjdb_2.php:584 conectar()
    • Source
    • }
      
      /**
       * 
       * @return Db
       */
      function db() {
      
      conectar();
      return conf::$pkj_bd_sis_conexao; } function db_get_error() { conectar(); return conf::$pkj_bd_sis_conexao->last_error; }
    →
    <ROOT>/painel/pkj/server/Model.php:105 db()
    • Source
    •     private $sql = null;
          public $data = [];
          public $original = [];
      
          public function __construct($db = null)
          {
              if ($db == null) {
      
      $db = db();
      } $this->sql = new SQL($db); $this->sql->join = []; $this->sql->class = get_class($this); $class = new ReflectionClass($this->sql->class); $comment = $class->getDocComment(); $this->__parse_doc($comment);
    →
    <ROOT>/painel/model/Estado.php:7 Model->__construct($db = null)
    • Source
    • <?php
      
      /**
       *
       * @return Estado     */
      function model_estado() {
      
      return new Estado();
      } /** * @table estado * @property integer $CodigoUf Gerado pelo pkj * @property integer $Id Gerado pelo pkj * @property varchar $Nome Gerado pelo pkj
    →
    <ROOT>/painel/public/cadastrar.php:63 model_estado()
    • Source
    •                 $Uf = model_estado()->where('CodigoUf', $uf)->first()->Uf;
                      $municipios = model_municipio()->where('Uf', $Uf)->get();
                      setComboData('[name=cidade]', $municipios->pluck('Codigo'), $municipios->pluck('Nome'));
                      setValue('[name=cidade]', $viacep->ibge);
                      setValue('[name=bairro]', $viacep->bairro);
                  }
      
      
      $estados = model_estado()->get();
      $estados->push([ 'CodigoUf' => 'Selecione o estado', 'Nome' => 'Selecione o estado' ]); label_combo('UF', 'uf', $estados->pluck('CodigoUf'), $estados->pluck('Nome'), "value='Selecione o estado' change='selecionar_estado()'", 3); function selecionar_estado($form)
    →
    <ROOT>/painel/index.php:106 include()
    • Source
    • Arguments
    •         if (isset($_POST["CMD"])) {
                  ob_clean();
                  include "pkj/server/pkjbind.php";
              }
              exit();
          } elseif (file_exists($path)) {
      
      
      include $path;
      if (isset($_POST["CMD"])) { ob_clean(); include "pkj/server/pkjbind.php"; } else { if ($template !== '') { $content = ob_get_clean();
    • →
      0 => string (51) "/www/wwwroot/certserver/painel/public/cadastrar.php"
      • File (7,71KB)
      • -rwxrwxrwx 1000 1000 7,71KB Nov 14 2021 /www/wwwroot/certserver/painel/public/cadastrar.php
        
  • ⇄→
    public __construct($message, $code, $previous)
    new \PDOException($message, $code, $previous)
    Inherited from Exception
    →
    public __wakeup()
    Inherited from Exception
    ⇄→
    final public getMessage()
    $ex->getMessage()
    Inherited from Exception
    ⇄→
    final public getCode()
    $ex->getCode()
    Inherited from Exception
    ⇄→
    final public getFile()
    $ex->getFile()
    Inherited from Exception
    ⇄→
    final public getLine()
    $ex->getLine()
    Inherited from Exception
    ⇄→
    final public getTrace()
    $ex->getTrace()
    Inherited from Exception
    ⇄→
    final public getPrevious()
    $ex->getPrevious()
    Inherited from Exception
    ⇄→
    final public getTraceAsString()
    $ex->getTraceAsString()
    Inherited from Exception
    ⇄→
    public __toString()
    (string) $ex
    Inherited from Exception
    →
    final private __clone()
    Inherited from Exception
  • PDOException: SQLSTATE[HY000] [1130] Host '172.16.11.12' is not allowed to connect to this MariaDB server in /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php:41
    Stack trace:
    #0 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(41): PDO->__construct()
    #1 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(567): Db->__construct()
    #2 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(584): conectar()
    #3 /www/wwwroot/certserver/painel/pkj/server/Model.php(105): db()
    #4 /www/wwwroot/certserver/painel/model/Estado.php(7): Model->__construct()
    #5 /www/wwwroot/certserver/painel/public/cadastrar.php(63): model_estado()
    #6 /www/wwwroot/certserver/painel/index.php(106): include('/www/wwwroot/ce...')
    #7 {main}
    
→ Called from <ROOT>/painel/index.php:132

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1130] Host '172.16.11.12' is not allowed to connect to this MariaDB server in /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php:41 Stack trace: #0 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(41): PDO->__construct() #1 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(567): Db->__construct() #2 /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php(584): conectar() #3 /www/wwwroot/certserver/painel/pkj/server/pkjall.php(5): db() #4 [internal function]: {closure}() #5 {main} thrown in /www/wwwroot/certserver/painel/pkj/server/pkjdb_2.php on line 41