MySQL Forums
Forum List  »  Perl

Bad Handshake... What does this mean? Desperate for an answer...
Posted by: l roles
Date: May 15, 2011 04:14AM

All,

I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution...

I have just upgraded to 5.1 from 4.1 on a Red Hat box. Everything is fine. I can connect to the database using the shell, I can connect to the database using a Perl script using DBI (also from the shell), However I cannot connect to the database using a Perl/CGI (inside Apache).

All I get is this error:

Bad handshake at line 123

That line is actually referring to the DBI->connect function.

my $dbh = DBI->connect('DBI:mysql:test:'.get_db(), 'root', '') or die $DBI::errstr;

I have scoured the internet looking for solutions, but all I have found is people talking about old/new password authentication. Furthermore, I have tried recompiling the CPAN modules against the new version.

Here is my other thread: http://forums.mysql.com/read.php?11,419782,419782#msg-419782

Any help is greatly appreciated.

Options: ReplyQuote


Subject
Written By
Posted
Bad Handshake... What does this mean? Desperate for an answer...
May 15, 2011 04:14AM


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.