Dynadot โ€” .com Transfer

Access denied for user

SpaceshipSpaceship
Watch
Impact
22
what does this mean? i get this when i try to access my site.!!!

Warning: mysql_connect(): Access denied for user: 'dan@localhost' (Using password: YES) in /home/dan/public_html/connectdb.php on line 8
no connection :o


somebody please help...urgent!!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
It's bad MySQL username and password in your script. Make sure the MySQL username and password are correct and that they have access to the database.
 
0
•••
It means that that particular database username ("dan") either does not have permission to connect to that particular database or that the password you have supplied (probably located in one of the php files) is incorrect.

If you have cpanel, check to make sure that the db user "dan" is assigned to have permission to access the database.

I hope that helps.

- Omar

[edit] - RJ beat me to it ;)
 
0
•••
well i have been using it all the while without any problems!! will check my cpanel
 
0
•••
check to make sure that the db user "dan" is assigned to have permission to access the database.

i have open up the mysql....the check is on "priviledges" . what else need to be check?

any other solutions?

thanks
 
0
•••
In the config file that has the MySQL info, you need to probably change the user and database name. If you're using cpanel, it's probably not going to just be 'dan', it'd be like loginname_dan same format for the database. Does that make sense? It uses the login name (same as the home directory name) and an underscore in front of all the user/db names.. so if your login is website for example, it'd be website_dan for the username and website_databasename for the database.

redhippo said:
i have open up the mysql....the check is on "priviledges" . what else need to be check?

any other solutions?

thanks
 
0
•••
np'ers have solve my problem, thanks all!!:wave:
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back