MySQL Forums
Forum List  »  Install & Repo

Re: "mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client"
Posted by: carlturton1974
Date: January 21, 2005 12:55PM

Hi

I had the same problem. The solution I found was to download MySql admin and create the account in there. Reboot, then open the Mysql system monitor and then the MySql admin. Log into the command line client through Mysql admin using, tools -> MySql command line client. The command line then opens in whatever account you have logged into via MySql Admin. I used the following codes to test it and both work.

<?php
$username ="someName";
$password ="somePass";
$hostname ="localhost";
$db = mysql_connect($hostname, $someName, $somePass)
or die("Unable to connect to MySql");
print"connected to MySql<br>";
mysql_close($db);
?>

Also works with

<?php
$db = mysql_connect("localhost", "username", "somepass");
echo $db;
mysql_close($db);
?>

Hope this helps.

Options: ReplyQuote


Subject
Written By
Posted
December 31, 2005 12:02AM
December 31, 2005 02:28AM
March 29, 2006 03:12AM
March 24, 2007 02:58PM
January 03, 2006 07:48AM
March 16, 2006 10:03AM
November 02, 2005 07:38AM
January 16, 2006 03:46PM
July 24, 2006 07:40AM
March 28, 2006 11:18PM
August 23, 2006 01:21PM
Re: "mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client"
January 21, 2005 12:55PM


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.