phpMyAdmin and mysql help?

I recently transfered by database over from a different host, and now I can't access it from my site. I keep getting this message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'califant_ischuld'@'host292.hostmonster.com' (using password: YES) in /home6/califant/public_html/auth.php on line 14
Can't connect to mysql.


I'm assuming it's because I'm either sending the wrong hostname, username, or password to the mysql_connect function, but i'm not sure how to figure out what the right one is.

I can get onto the phpMyAdmin site and look at my database through the background, but how do I figure out what I need to be sending to connect from a php site?

2009-02-15T18:26:38Z

I know the command to call, what i'm trying to figure out is what my hostname, username, and password are, and how can I change them from phpMyAdmin?

Anonymous A2009-02-15T18:10:36Z

Favorite Answer

mysql_connect('HOST', 'USER NAME', 'PASSWORD') or die(mysql_error());
mysql_select_db("DATABASE") or die(mysql_error());