Database Authentication Failed (Error 1045)
The AGNI code successfully reached your server's database, but MySQL rejected the login. This means the credentials in the code do not perfectly match the permissions in Plesk.
How to fix this in Plesk right now:
- Log into your Plesk Control Panel.
- Go to Databases on the left menu.
- Find the database
jumaani_agni.
- Look at the assigned users. Is the user exactly
agnidb? Or did Plesk add a prefix like jumaani_agnidb?
(If Plesk added a prefix, you must edit line 23 of agni.php to match the prefix).
- Click on the user name (agnidb) to edit it.
- Re-type the password explicitly as
Jumaani@123 and click Save/OK.
- Ensure the dropdown/checkbox for 'Database to use' is set to
jumaani_agni.
Raw Error Data: SQLSTATE[HY000] [1045] Access denied for user 'agnidb'@'localhost' (using password: YES)