PDA

View Full Version : Shoutbox


soccer022483
09-01-2004, 04:26 AM
I have a domain: www.anova-design.com

When I try to connect to my mysql database by doing the following:
mysql_connect("anova-design.com", "soccer022483", "password");

it gives the following error:
Warning: mysql_connect(): Access denied for user: 'soccer022483@mary.okihost.com' (Using password: YES) in /home/virtual/site325/fst/var/www/html/shoutbox.php on line 38

I know for a fact that I'm using the correct host name and user and password, are they're any settings i need change or something?

Austin

raf
09-01-2004, 09:05 AM
check out how your account was set up.

if the webserver runs on the same machine as the MySQL server, then you need to use 'localhost' as servername.
+ make sure that they/you "flushed priviledges" after creating the account.

else check
http://www.mysql.com/doc/en/Access_denied.html

soccer022483
09-01-2004, 03:56 PM
localhost did the trick, thanks a million

Austin