Getting this error as well after server migration? Thanks chaps
Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'digitals_admin'@'localhost' (using password: YES) in /home/digitalsaveadmin/public_html/app/Tygh/Backend/Database/Mysqli.php on line 40
Please correct database access in the config.local.php file and make sure that new database user has all necessary permissions. It can be checked in the control panel of your server
Ok I've re uploaded DB with no errors.
In MySQL admin I have created the user and assigned it to the database with All Privileges - but i still get the same error. The details are correct, I've checked and double checked.
I have had to change the DB password (cpanel wanted a stronger pw) but have changed it in config.local - Is there anywhere else where the password would need to be changed?
First off, I would change passwords in cpanel and then let it propagate it to the DB. That way things stay in sync and you don't inadvertently overwrite a change made directly in mySQL.
You are connecting to the db so db_name and db_host are okay. If the user 'digitals_admin' is valid, then that only leaves the password as being a missmatch.
Are sure that localhost should be used as host on this server?