Forum Moderators: coopster

Message Too Old, No Replies

mysql problem with apache and php

mysql problem with apache and php

         

dizyn

2:30 pm on Jul 5, 2006 (gmt 0)

10+ Year Member



Please see this and help me!

thanks in advance...

PHP Code:
<?

mysql_connect("localhost","root","root") or die("Sorry Please ..........");
mysql_select_db("test");
$re = mysql_query("select * from test1") or die(mysql_error());
while($ro = mysql_fetch_object($re))
{
echo $ro->name;
echo "<BR>";
}

?>

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Server\Apache2\htdocs\test.php on line 10
Sorry Please ..........

jatar_k

6:42 pm on Jul 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



did you figure this out dizyn?

coopster

6:55 pm on Jul 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Looks like the old password issue [webmasterworld.com] (see message number 9).

mcavic

7:02 pm on Jul 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it's probably a version mismatch between PHP's MySQL client, and the MySQL server. I got around this problem by installing Apache, MySQL, and PHP from RPM rather than the nightmere of compiling them myself.