MySQL Forums
Forum List  »  Perl

cannot connect to server
Posted by: Lalmama Lma
Date: September 01, 2008 01:04AM

i am using apache 5.8 server, mysql 5.07 and perl 5.8.. i am not able to connect to the database


code:

#!c:/perl/bin/perl.exe

print "Content-type: text/html \n\n";

use DBI;

$con=DBI->connect("DBI:mysql:localhsot","usr","password");




this is the error i get in the error.log


#!c:/perlCannot connect at C:/Apache2.2/cgi-bin/test.pl line 14.\r
[Mon Sep 01 12:06:36 2008] [error] [client 127.0.0.1] DBI connect('daya:localhost','root',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at C:/Apache2.2/cgi-bin/test.pl line 14\r

Options: ReplyQuote


Subject
Written By
Posted
cannot connect to server
September 01, 2008 01:04AM


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.