$e PDOException (8) "SQLSTATE[HY000] [1045] Access denied for user 'admin'@'172.31.6.228' (using ...
  • Source
  • Properties (8)
  • Available methods (10)
  • } else {
    if (!empty($this->connections["$database"])) {
    return true;
    }
    if ($database == "masterReplica") {
    $this->connections['masterReplica'] = new \PDO(
    'mysql:host=' . DATABASE_MASTER_REPLICA_HOST . ';dbname=' . DATABASE_MASTER_REPLICA_DATABASE . ";charset=utf8",
    DATABASE_MASTER_REPLICA_USERNAME,
    DATABASE_MASTER_REPLICA_PASSWORD,
    $databaseOptions
    );
    } elseif ($database == "event") {
    $this->connections['event'] = new \PDO(
  • protected message -> string (90) "SQLSTATE[HY000] [1045] Access denied for user 'admin'@'172.31.6.228' (using ...
    SQLSTATE[HY000] [1045] Access denied for user 'admin'@'172.31.6.228' (using password: YES)
    
    private string -> string (0) ""
    protected code -> integer 1045
    protected file -> string (52) "/home/users/panda/framework.panda/Panda/Database.php"
    • File (19.21KB)
    • -rw-rw-r-- 1002 1002 19.21KB Oct 05 09:01 /home/users/panda/framework.panda/Panda/Database.php
      
    protected line -> integer 84
    private trace -> Debug Backtrace (7)
    .../Panda/Database.php:84 PDO->__construct(string $dsn, string $username = null, string $password = null, array $options = null)
    • Source
    • } else {
      if (!empty($this->connections["$database"])) {
      return true;
      }
      if ($database == "masterReplica") {
      $this->connections['masterReplica'] = new \PDO(
      'mysql:host=' . DATABASE_MASTER_REPLICA_HOST . ';dbname=' . DATABASE_MASTER_REPLICA_DATABASE . ";charset=utf8",
      DATABASE_MASTER_REPLICA_USERNAME,
      DATABASE_MASTER_REPLICA_PASSWORD,
      $databaseOptions
      );
      } elseif ($database == "event") {
      $this->connections['event'] = new \PDO(
    .../Panda/Database.php:251 Panda\Database->connect($database, $errorCount0)
    • Source
    • if (is_array($return)) {
      return $return;
      }
      }
      $this->logQuery($database, [$query, $vars]);
      $this->connect($database);
      $prepared = $this->connections["$database"]->prepare($query);
      if (!$prepared) {
      return;
      }
      $prepared->execute($vars);
    .../Panda/Database.php:538 Panda\Database->row($database, $query = null, $vars = array(), $options = array())
    • Source
    • if (defined("FORCE_MASTER_DATABASE")) {
      $options['master'] = 1;
      }
      if (preg_match("/insert /i", $query) || preg_match("/update /i", $query) || preg_match("/replace /i", $query)) {
      $options['master'] = 1;
      }
      if (empty($options['master']) && empty($options['force']) && empty($options['parent'])) {
      return $this->row("masterReplica",$query,$vars,$options);
      }
      return $this->row("master",$query,$vars,$options);
      }
      /**
      * master_idInsert function.
      *
    .../Panda/Main.php:678 Panda\Database->master_row($query = null, $vars = array(), $options = array())
    • Source
    • $host = $_SERVER['HTTP_HOST'] ?? null;
      }
      if ($host == null) {
      return false;
      }
      $query = "select * from networkDomainRedirect where domain = ? or domain = ?";
      $target = $this->db->master_row($query, [$host, "www.{$host}"]);
      if (empty($target['target'])) {
      return null;
      }
      $request = $_SERVER['REQUEST_URI'] ?? "/";
      $destination = "https://" . $target['target'] . $request;
    .../Panda/Main.php:744 Panda\Main->checkForRedirect($host = null)
    • Source
    • if (!empty($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == "/.well-known/validate") {
      echo "PANDA_VALID";
      exit;
      }
      # redirect check here so we can use channels to setup ssl
      if (!preg_match("/\.well-known/", $_SERVER['REQUEST_URI']) && !defined("PANDACUB")) {
      $this->checkForRedirect($host);
      }
      if (
      preg_match("/\." . preg_quote($this->settings['primaryDomain'], '/') . "\z/i" , $host)
      ||
      preg_match("/\." . preg_quote($this->settings['secondaryDomain'], '/') . "\z/i" , $host)
      ||
    .../router.panda.tech/index.php:37 Panda\Main->determineSite($host = null, $allowHTTP = false)
    • Source
    • $allowHTTP = true;
      }
      if (preg_match("/\/simpleStat/", $_SERVER['REQUEST_URI'])) {
      $allowHTTP = true;
      }
      }
      $site = $main->determineSite(null, $allowHTTP);
      if (empty($site)) {
      $site = ['type' => null];
      }
      if ($site['type'] == "cub") {
      require_once("/home/users/panda/cubcontrol.panda.tech/router.php");
    <ROOT>/index.php:2 require_once()
    • Source
    • Arguments
    • <?php
      require_once(dirname(__FILE__) . "/../index.php");
    • 0 => string (45) "/home/users/panda/router.panda.tech/index.php"
      • File (2.7KB)
      • -rw-rw-r-- 1002 1002 2.7KB Oct 05 09:01 /home/users/panda/router.panda.tech/index.php
        
    private previous -> null
    public errorInfo -> array (3)
    $e->errorInfo
    0 => string (5) "HY000"
    $e->errorInfo[0]
    1 => integer 1045
    $e->errorInfo[1]
    2 => string (67) "Access denied for user 'admin'@'172.31.6.228' (using password: YES)"
    $e->errorInfo[2]
  • public __construct(string $message = '', int $code0, Throwable $previous = null)
    new \PDOException(string $message = '', int $code0, Throwable $previous = null)
    public __wakeup()
    final public getMessage(): string
    $e->getMessage()
    final public getCode()
    $e->getCode()
    final public getFile(): string
    $e->getFile()
    final public getLine(): int
    $e->getLine()
    final public getTrace(): array
    $e->getTrace()
    final public getPrevious(): Throwable
    $e->getPrevious()
    final public getTraceAsString(): string
    $e->getTraceAsString()
    public __toString(): string
    (string) $e