This topic is locked
[SOLVED]

Fatal error: Access denied for user

12/20/2022 6:01:20 AM
PHPRunner General questions
K
kenny_robb author

Been away from here for a bit (v8). Just installed V10 trial and built and deplyed a new project. However when I try and look at the final result on the browswre I get

Fatal error: Access denied for user 'xxxxxxx'@'50-87-76-156.unifiedlayer.com' (using password: YES) in /home3/akrprod1/public_html/projecttest/connections/Connection.php on line 668

Nothing seems to be wrong and it all connected, built and uploaded successfully

Environment
Windows 10
phprunner v10.8 trial
Hosting by justhost phpv8 mysql

I am hoping that there is a tick box I have forgotten to tick

Thanks in anticipation

Admin 12/20/2022

You need to ask your web hosting company what server address you need to use while connecting to the database from PHP code.

Most likely instead of host 50-87-76-156.unifiedlayer.com you need to use localhost, but this kind of question only your web hosting company can answer.

K
kenny_robb author 12/21/2022

Good shout. I added a new server database connection and changed the $host from the ipaddress to localhost, rebuilt and uploadrd and it worked.

Thanks