Forum Moderators: coopster
I tried to connect to MYSQL server by PHP code. But an error occor:
my IE warning me an error as follow:
"Warning mysql_connect() : Client does not support authentication protocol requested by server, consider upgrading MySQL client in c:\inetpub\wwwroot\testphp.php online 2
cannot connect to database"
my code is :
<?
mysql_connect("localhost,"root", "nnn11")
or die("cannot connect to database");
print("connected successfully);
?>
note that: taked a test by connect to MySQL from Command Window : "C:\mysql>mysql -u root -pnnn11" . It work ok.
So any one help me to fix that error. Thanhk alot!
I'm guessing you are on MySQL >= 4.1? A common issue. This thread should help...
[webmasterworld.com...]