Jump to content

Edit History

tetramix

tetramix

[PrestaShopException]
Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'miosito'@'localhost' (using password: YES)
at line 127 in file classes/db/DbPDO.php

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;
DbPDOCore->connect - [line 330 - classes/db/Db.php]
DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 48 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]

il log php non l'ho trovato, mentre questa è la risposta con la modifica al php,

ho provato a togliere la password, ma il risultato non cambia

la riga 127 appare in rosso

miosito@localhost lo modificato prima di metterlo qui sul forum

il nome nel file è rimasto lo stesso

tetramix

tetramix

[PrestaShopException]
Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'miosito'@'localhost' (using password: YES)
at line 127 in file classes/db/DbPDO.php

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;
DbPDOCore->connect - [line 330 - classes/db/Db.php]
DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 48 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]

il log php non l'ho trovato, mentre questa è la risposta con la modifica al php,

ho provato a togliere la password, ma il risultato non cambia

la riga 127 appare in rosso

tetramix

tetramix

[PrestaShopException]
Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'miosito'@'localhost' (using password: YES)
at line 127 in file classes/db/DbPDO.php

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;
DbPDOCore->connect - [line 330 - classes/db/Db.php]
DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 48 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]

il log php non l'ho trovato, mentre questa è la risposta con la modifica al php,

ho provato a togliere la password, ma il risultato non cambia

 

×
×
  • Create New...