Jump to content

[SOLVED] Error connecting to the database after updating prestashop


Recommended Posts

Hello I leave this here in case someone might find it useful after spending several hours trying to fix it.

Upgrading prestashop from version 1.7.5 to 1.7.6.1
Hosting: CPanel with CentOS and PHP 7.3
Correct update without faults.

When I update the browser:
Error 500 in backoffice and frontoffice.

With the following error:

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

Obviously the password is correct.

Try reinstalling Prestashop manually.
Try clearing the cache (cd myshop; rm var/cache/* -Rf)
Try deactivating modules
Try deactivating template

Nothing works

My password is C34%}D4B2)GdDB^H6xo}

Try changing the password in MySQL to a simpler one with only numbers and letters.

I clear the cache... and it works correctly.

There is some problem with parsing this type of passwords in the latest version.

I would open a bug but I don't have time, I post this in case someone can save hours of frustration and wasted time.

Good luck!

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...