Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Access denied for user

Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back