CHYBA 2002
SQLSTATE[HY000] [2002] Connection refused
/opt/drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php::156
toto sa dialo pred chybou:
#0 /opt/drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(156): PDO->__construct('mysql:host=mysq...', 'root', 'eNzwDVNJm952m9q...', Array)
#1 /opt/drupal/web/core/lib/Drupal/Core/Database/Database.php(380): Drupal\Core\Database\Driver\mysql\Connection::open(Array)
#2 /opt/drupal/web/core/lib/Drupal/Core/Database/Database.php(169): Drupal\Core\Database\Database::openConnection('default', 'default')
#3 [internal function]: Drupal\Core\Database\Database::getConnection('default')
#4 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(79): call_user_func_array('Drupal\\Core\\Dat...', Array)
#5 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'database')
#6 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(212): Drupal\Component\DependencyInjection\Container->get('database', 1)
#7 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(62): Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters(Array)
#8 /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'cache.container')
#9 /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(549): Drupal\Component\DependencyInjection\Container->get('cache.container')
#10 /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(902): Drupal\Core\DrupalKernel->getCachedContainerDefinition()
#11 /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(473): Drupal\Core\DrupalKernel->initializeContainer()
#12 /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(715): Drupal\Core\DrupalKernel->boot()
#13 /opt/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#14 {main}
^ PDOException {#18
  #message: "SQLSTATE[HY000] [2002] Connection refused"
  #code: 2002
  #file: "/opt/drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php"
  #line: 156
  +errorInfo: array:3 [
    0 => "HY000"
    1 => 2002
    2 => "Connection refused"
  ]
  trace: {
    /opt/drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php:156 {
      Drupal\Core\Database\Driver\mysql\Connection::open(array &$connection_options = []) …
      › try {  $pdo = new \PDO($dsn, $connection_options['username'], $connection_options['password'], $connection_options['pdo']);}
      arguments: {
        $dsn: "mysql:host=mysql;port=3306;charset=utf8mb4;dbname=apetitonline_cz"
        $username: "root"
        $passwd: "eNzwDVNJm952m9qAdZRC"
        $options: array:5 [ …5]
      }
    }
    /opt/drupal/web/core/lib/Drupal/Core/Database/Database.php:380 {
      Drupal\Core\Database\Database::openConnection($key, $target) …
      › 
      › $pdo_connection = $driver_class::open(self::$databaseInfo[$key][$target]);$new_connection = new $driver_class($pdo_connection, self::$databaseInfo[$key][$target]);
      arguments: {
        &$connection_options: array:9 [ …9]
      }
    }
    /opt/drupal/web/core/lib/Drupal/Core/Database/Database.php:169 {
      Drupal\Core\Database\Database::getConnection($target = 'default', $key = null) …
      ›   // If necessary, a new connection is opened.  self::$connections[$key][$target] = self::openConnection($key, $target);}
      arguments: {
        $key: "default"
        $target: "default"
      }
    }
    Drupal\Core\Database\Database::getConnection() {}
    /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php:79 {
      Drupal\Component\DependencyInjection\PhpArrayContainer->createService(array $definition, $id) …
      › 
      ›   $service = call_user_func_array($factory, $arguments);}
      arguments: {
        $function_name: "Drupal\Core\Database\Database::getConnection"
        $parameters: array:1 [ …1]
      }
    }
    /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176 {
      Drupal\Component\DependencyInjection\Container->get($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) …
      › try {  $service = $this->createService($definition, $id);}
      arguments: {
        $definition: array:2 [ …2]
        $id: "cache.container"
      }
    }
    /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php:212 {
      Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters($arguments) …
      › else {  $arguments[$key] = $this->get($id, $invalid_behavior);}
      arguments: {
        $id: "database"
        $invalid_behavior: 1
      }
    }
    /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php:62 {
      Drupal\Component\DependencyInjection\PhpArrayContainer->createService(array $definition, $id) …
      › if (isset($definition['arguments'])) {  $arguments = $this->resolveServicesAndParameters($definition['arguments']);}
      arguments: {
        $arguments: array:4 [ …4]
      }
    }
    /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php:176 {
      Drupal\Component\DependencyInjection\Container->get($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) …
      › try {  $service = $this->createService($definition, $id);}
      arguments: {
        $definition: array:2 [ …2]
        $id: "cache.container"
      }
    }
    /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php:549 {
      Drupal\Core\DrupalKernel->getCachedContainerDefinition() …
      › public function getCachedContainerDefinition() {  $cache = $this->bootstrapContainer->get('cache.container')->get($this->getContainerCacheKey());arguments: {
        $id: "cache.container"
      }
    }
    /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php:902 {
      Drupal\Core\DrupalKernel->initializeContainer() …
      › if (empty($this->moduleList) && !$this->containerNeedsRebuild) {  $container_definition = $this->getCachedContainerDefinition();}
    }
    /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php:473 {
      Drupal\Core\DrupalKernel->boot() …
      › // Initialize the container.$this->initializeContainer();}
    /opt/drupal/web/core/lib/Drupal/Core/DrupalKernel.php:715 {
      Drupal\Core\DrupalKernel->handle(Request $request, $type = self::MASTER_REQUEST, $catch = true) …
      › else {  $this->boot();  $response = $this->getHttpKernel()->handle($request, $type, $catch);
    }
    /opt/drupal/web/index.php:19 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#6 …}
      }
    }
  }
}