Access denied for user

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

redhippo

VIP Member
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
well i have been using it all the while without any problems!! will check my cpanel
 
0
Close
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
Close
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
Close
np'ers have solve my problem, thanks all!!:wave:
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Each character of a domain name in its own box, with how to type one of them
Bookmarks: see bookmarks without a label
You can now show only the bookmarks you have not labeled. Open the label filter in the Bookmarks tab of your account menu, or on your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back