SQLSTATE[HY000] [1045] Access denied for user 'if0_42582936'

Website URL

https://databaze-redline.infinityfreeapp.com

Error Message

Database connection error: SQLSTATE[HY000] [1045] Access denied for user ‘if0_42582936’@‘192.168.0.56’ (using password: YES)

Other Information

Hi, I am trying to connect my custom PHP script to my MySQL database, but I keep getting the 1045 Access Denied error. I have checked my hostname (sql210.infinityfree.com), database name, and username in my database configuration file, but it still fails to connect. I am using my Hosting Account password from the Client Area. Could you please help me resolve this issue?

I checked it, and the password is incorrect. The password looks similar, but in the configuration file, there is an additional space at the end. That’s an additional character, which makes it an different password.