MySQL error – Access denied. Please help – been stuck for 3 hours?
I am using a form to input data to a database using my uni web account.
It won’t work for some reason, can you help me?
My error shows as this:
An error occurred in script ‘…htdocs/includes/mysqli_connect.php’ on line 14: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user ‘unn_s006202′@’localhost’ (using password: YES)
Date/Time: 3-22-2010 14:22:18
try using mysql_connect() and not mysqli_connect()
April 17th, 2010 at 1:42 am
Have you verified that you are using the correct password?
References :
April 17th, 2010 at 2:13 am
Looks like your username is the thing causing the probs, or the database is down.
References :
April 17th, 2010 at 2:52 am
well there is an issue in your script with how your connecting to the database, since it sounds like the database has no account for unn_s006202 so you would need to check the account file for your account. or the person who runs the mysql hosting.
References :
April 17th, 2010 at 3:18 am
try using mysql_connect() and not mysqli_connect()
References :