I've been given sub-directory access to someone's site, and I can't connect to the MySQL on the site. Everytime I try, I get the following error:
Warning: mysql_connect(): Access denied for user: 'Fenroy' (Using password: YES) in [edited out] on line 23
Could not connect: Access denied for user: 'Fenroy' (Using password: YES)
Any thoughts?
Well, it seems that the database is accessible/reachable for your script, else another error would pop up.
Appears to be a authentication problem. I would suggest you to check your username and password.
are you sure you have acces to the server?
it seem's that your user name or pass is wrong.
What should I put as the server parameter? I'm not sure whether or not "localhost" would work in this case.
if you still get the above error message there are not many possible soruces:
- check if the database name is correct
- check if your login is correct
- check if your password is correct
Your db-location localhost is working fine as it seems. Else you would get another, more basic, error.
try doing this
' Adding database to the username '
' Make the database '
' Check see if you have typed the write details in config/or wotever '