Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

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?

Update:

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?

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

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

    mysql_select_db("DATABASE") or die(mysql_error());

Still have questions? Get your answers by asking now.