jazz for soul Posted June 29, 2020 Share Posted June 29, 2020 (edited) Hello ! Here I am in a critical situation, when I try to access my site, I get a 500 Server Error and when I try to access the back-end, here is what is displayed: [PrestaShopException] Link to database cannot be established:SQLSTATE[28000] [1045] Access denied for user 'superboy'@'localhost' (using password: YES) at line 102 in file classes/db/DbPDO.php 97. public function connect() 98. { 99. try { 100. $this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5); 101. } catch (PDOException $e) { 102. throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage()); 103. } 104. 105. // UTF-8 support 106. if ($this->link->exec('SET NAMES \'utf8\'') === false) { 107. throw new PrestaShopException('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'); • DbPDOCore->connect - [line 319 - classes/db/Db.php] • DbCore->__construct - [line 240 - classes/db/Db.php] - [4 Arguments] • DbCore::getInstance - [line 66 - config/alias.php] • pSQL - [line 329 - classes/shop/Shop.php] - [1 Arguments] • ShopCore::initialize - [line 114 - config/config.inc.php] • require - [line 36 - admin/index.php] - [1 Arguments] What to do ?? My prestashop is in 1.6 and I'm at planethoster. Thank you for your help…. Edited July 13, 2020 by jazz for soul (see edit history) Link to comment Share on other sites More sharing options...
Razi Posted June 29, 2020 Share Posted June 29, 2020 (edited) You have make any change with database? Kindly check your database , database user, database password and match with file /config/settings.inc.php record Example: define('_DB_NAME_', 'prestashop'); define('_DB_USER_', 'root'); define('_DB_PASSWD_','root '); Edited June 29, 2020 by Razi (see edit history) 2 Link to comment Share on other sites More sharing options...
jazz for soul Posted June 29, 2020 Author Share Posted June 29, 2020 Ah thank you, it was the user's password that posed concerns ! Link to comment Share on other sites More sharing options...
Razi Posted June 29, 2020 Share Posted June 29, 2020 Thanks You can give a like by clicking on the gray heart below the posts. Link to comment Share on other sites More sharing options...
Charmilla Boutique Posted June 29, 2020 Share Posted June 29, 2020 (edited) Hi! I have the exact same problem (http://charmillaboutique.nl/). Can you let me know where I can adjust this: define('_DB_NAME_', 'prestashop'); define('_DB_USER_', 'root'); define('_DB_PASSWD_','root '); I did find the correct config/settings.inc.php record, but I dont really know where to adjust it.. Hope you can help! Edited June 29, 2020 by Charmilla Boutique addiotional information (see edit history) Link to comment Share on other sites More sharing options...
Razi Posted June 30, 2020 Share Posted June 30, 2020 In the config/settings.inc.php file you will see the database name, database user name and password. now you need to update this file with updated information. open your hosting panal, go in database section and get the name of database. After this check the database user section and match the Database user name and at the end match the password. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now