Warning

mysqli::__construct(): (HY000/2002): Connection refused

/mnt/devel/Atrium/atriumstudio/vendor/Onion/Database/MySQL.php

Url/Visitor

http://www.atriumarchitekti.loc/sk/e-shop/36/kniha-zasahy-tatry-2019 (GET)

Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0

Source

209 }
210
211 /**
212 * Pripojenie k databázovému serveru
213 *
214 * @return void
215 */
216 private function connect()
217 {
218 $hash = sha1($this->host.$this->user.$this->password.$this->database);
219
220 if (isset($this->connections[$hash]) === true) {
221 $this->mysqli = $this->connections[$hash];
222
223 if (@$this->mysqli->ping() === true) {
224 return;
225 }
226 }
227
228 $mysqli = new \mysqli($this->host, $this->user, $this->password, $this->database, $this->port, $this->socket);
229
230 if ($mysqli->connect_error === false) {
231 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);
232 }
233
234 if ($mysqli->set_charset('utf8') === false) {
235 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);
236 }
237
238 $this->mysqli = $mysqli;

Backtrace

$_SERVER

array (
  'REDIRECT_STATUS' => '200',
  'HTTP_HOST' => 'www.atriumarchitekti.loc',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0',
  'HTTP_ACCEPT' => '*/*',
  'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3',
  'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_PRIORITY' => 'u=4',
  'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.atriumarchitekti.loc Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)',
  'SERVER_NAME' => 'www.atriumarchitekti.loc',
  'SERVER_ADDR' => '127.0.0.1',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '127.0.0.1',
  'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'REQUEST_SCHEME' => 'http',
  'CONTEXT_PREFIX' => '',
  'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php',
  'REMOTE_PORT' => '34098',
  'REDIRECT_URL' => '/sk/e-shop/36/kniha-zasahy-tatry-2019',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'GET',
  'QUERY_STRING' => '',
  'REQUEST_URI' => '/sk/e-shop/36/kniha-zasahy-tatry-2019',
  'SCRIPT_NAME' => '/index.php',
  'PHP_SELF' => '/index.php',
  'REQUEST_TIME_FLOAT' => 1729232157.775,
  'REQUEST_TIME' => 1729232157,
)