rs-prestadev Posted April 23, 2020 Share Posted April 23, 2020 Hi, I 've been working on a local Xampp install to dev a new PS theme, everything worked fine until this morning when I started the server again. I can't acccess the front (nor the admin), I get the following 500 error: Link to database cannot be established: SQLSTATE[HY000] [1044] Access denied for user 'prestashop'@'%' to database 'prestashop' at line 127 in file classes/db/DbPDO.php I'm running on 1.7.6, I checked my database parameters in parameters.php, and everything worked properly before. The only thing I did was change some products yesterday (for the first time), but everything worked until I started the server today. I've googled the issue but nothing comes up, does anyone have an idea on how to handle this ? Thanks Link to comment Share on other sites More sharing options...
fbenoist.com Posted April 24, 2020 Share Posted April 24, 2020 Hi, Did you check if mysql (or mariadb) is running properly ? Link to comment Share on other sites More sharing options...
rs-prestadev Posted April 24, 2020 Author Share Posted April 24, 2020 It seems so... (I tried a restart as well, no effect) Link to comment Share on other sites More sharing options...
fbenoist.com Posted April 24, 2020 Share Posted April 24, 2020 Check database_host in /app/config/parameters.php and try to replace 'localhost' with '127.0.0.1' Link to comment Share on other sites More sharing options...
rs-prestadev Posted April 24, 2020 Author Share Posted April 24, 2020 That's my current setting : Link to comment Share on other sites More sharing options...
fbenoist.com Posted April 24, 2020 Share Posted April 24, 2020 You may have to try with another user to verify that this is a user rights issue. Link to comment Share on other sites More sharing options...
rs-prestadev Posted April 24, 2020 Author Share Posted April 24, 2020 Okay, works with root, so it's a user issue... when I check my prestashop user privileges, I get this a MySQL checksum error, is that my issue ? How can I handle this ? Thanks ! Link to comment Share on other sites More sharing options...
fbenoist.com Posted April 24, 2020 Share Posted April 24, 2020 Try to repair database, see https://stackoverflow.com/questions/58765779/mysql-issue-when-creating-a-new-user 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