I am facing a persistent SQLSTATE[HY000] [1045] Access denied error when my PHP application tries to

Website URL

(victoryhub.gamer.gd)

Error Message

**My Details:**

* **Hosting Username:** ifo_40300576 *

**Domain:** victoryhub.gamer.gd *

**MySQL Hostname:** sql212.infinityfree.com *

**MySQL Database Name (as per panel):** ifo_40300576_victory

**What I have tried:**

  1. I have confirmed the Hostname, Username, and Database Name are correct in my `config.php` file.
  2. I have **reset my Control Panel/MySQL password** to a strong, simple password and updated it in the `config.php` file.
    1. I have also tried importing my tables successfully via phpMyAdmin.

**The Issue:** Despite the password reset, I am still getting the “Access denied” error. Could you please manually check and confirm the correct password for my MySQL user or perform a server-side password reset to fix this synchronization issue?

Thank you for your assistance.

Other Information

Database connection failed: SQLSTATE[HY000] [1045] Access denied for user ‘ifo_40300576’@‘192.168.0.51’ (using password: YES) (Kripya common/config.php file check karein)

(other information and details relevant to your question)

Sensitive details exposed

Thread will remain unlisted because you’ve exposed your passwords. So pleased change that asap.

However your username starts if0 (zero) not ifo (letter)

5 Likes

I have reset your hosting account password to a new, random password.

Please remember that:

  • This is a public forum. Any information you shared here can be seen by anyone, so do not share any sensitive details here.
  • We will never ask you for your hosting account passwords. Anyone who has a good reason to access it already can access it.

I recommend to leave it like this and not configure any “simple passwords”, because “simple” usually means “easy to guess”, which is the opposite of what you want with a password. Should you want to change it again, do not use the previous password. While the password is hidden now, it’s likely that the password was already seen and copied to other sources, so do not use it again.

As for the issue itself, it’s very simple: our usernames start with if0_, not ifo_. That’s a zero, not a letter.

Using the right username, database name, and the updated password should fix your database connection.

5 Likes