This topic is locked

DB Connection

1/22/2009 2:28:54 PM
PHPRunner General questions
W
webbob author

I created a database and connection. Everything went fine. I then built a table for password protection. Now, when I try to login.php, I get an error saying

mysql_connect() [function.mysql-connect]: Access denied for user 'crysta13'@'biz49.inmotionhosting.com' (using password: YES)

URL crystalsprings-umc.org/login.php?

Error file /home/crysta13/public_html/include/dbconnection.php

Error line 9
I tried changing the user line to my regular host name but cannot get it to work.
Any Suggestions?

Sergey Kornilov admin 1/22/2009

Usually this means username/password are incorrect or MySQL is not configured properly to allow local access.
Show this message to your web hosting company team and they'll be able to help you with this.
Just in case: username, password and host name can be found in include/dbcommon.php file.