MySQL Forums
Forum List  »  Newbie

can't connect to MySQL via PHP5
Posted by: mike wilson
Date: September 12, 2004 07:29AM

What I got
Win XP Home
Apahche 2.0.50
PHP 5.0.1
MySQL 4.1.3a

Every time I try to execute this line of code
$dbcnx = @mysql_connect('localhost','root','snoopy');

I get this in the browser:
Client does not support authentication protocol requested by server; consider upgrading MySQL client

I can login to MySQL from the command prompt.
I don't know if this is MySQL thing or PHP.

What am I doing wrong?

Thanks,

Mike

Options: ReplyQuote


Subject
Written By
Posted
can't connect to MySQL via PHP5
September 12, 2004 07:29AM
September 13, 2004 08:52AM


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.