MySQL Forums
Forum List  »  Newbie

mysql_connect() problems
Posted by: Timothy Brooks
Date: July 26, 2005 12:28PM

Okay, I've been using mysql 3.x for years and currently am using 3.23.58. A new client has asked me to build something on his server, which is running 4.1.12a. However, I cannot get access to the database.

My connection script looks like this (the variables are made up):

$host = "localhost";
$user = "foo";
$password = "bar";
$database = "jazzgreats";

mysql_connect($host, $user, $password) or die ('I cannot connect to the database '.$database.' for '.$user.' because: ' . mysql_error());
mysql_select_db($database);

When I try this now, I get:

I cannot connect to the database jazzgreats for foo because: Client does not support authentication protocol requested by server; consider upgrading MySQL client

I have no clue what this means. Can someone help me here?

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
mysql_connect() problems
July 26, 2005 12:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.