I have a PHP script that connects to any MySQL DB successfully. However, once I uploaded it to Infinityfree hosting and added the PROVIDED CREDENTIALS on the cPanel and changed password to a unique one for FTP, MySQL, etc. I got the “Access Denied” error:
BBDD SQLSTATE[HY000] [1045] Access denied for user ‘epiz_23720172’@‘192.168.2.195’ (using password: YES)
If you double checked your credentials and you’re sure they are correct, can you please point out on which script you see this error so I can check it?