Jump to content

Edit History

boris

boris

Hello, 

I'm having the same issue, when i try to access my back office :

 

[PrestaShopException]
Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused
at line 120 in file classes/db/DbPDO.php

115.     public function connect()
116.     {
117.         try {
118.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
119.         } catch (PDOException $e) {
120.             throw new PrestaShopException('Link to database cannot be established: '.$e->getMessage());
121.         }
122. 
123.         $this->link->exec('SET SESSION sql_mode = \'\'');
124. 
125.         return $this->link;


DbPDOCore->connect - [line 323 - classes/db/Db.php]
DbCore->__construct - [line 234 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 48 - config/alias.php]
pSQL - [line 339 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 117 - config/config.inc.php]
require - [line 43 - admin/index.php] - [1 Arguments]

I tried to follow the step to access /prestashop/var/cache/prod but it seems my var directory is missing for some reason.

When i got to /app/config/parameters.php i can see my password and there seems to be no error (no repetition)

Also, I'm not a specialist and I might have missed something.

 

Could it be related to the domain ? I had 2 active domains and i renewed only one last week. I'm curious if this is a coincidence or if it's the reason my site is down.

 

Thanks a lot

boris

boris

Hello, 

I'm having the same issue, when i try to access my back office :

 

[PrestaShopException]
Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused
at line 120 in file classes/db/DbPDO.php

115.     public function connect()
116.     {
117.         try {
118.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
119.         } catch (PDOException $e) {
120.             throw new PrestaShopException('Link to database cannot be established: '.$e->getMessage());
121.         }
122. 
123.         $this->link->exec('SET SESSION sql_mode = \'\'');
124. 
125.         return $this->link;

I tried to follow the step to access /prestashop/var/cache/prod but it seems my var directory is missing for some reason.

When i got to /app/config/parameters.php i can see my password and there seems to be no error (no repetition)

Also, I'm not a specialist and I might have missed something.

 

Could it be related to the domain ? I had 2 active domains and i renewed only one last week. I'm curious if this is a coincidence or if it's the reason my site is down.

 

Thanks a lot

×
×
  • Create New...