RE: :mysql

From: Henry McGuinness (henry_mcguinness_at_yahoo.co.uk)
Date: 10/12/04


Date: Tue, 12 Oct 2004 13:18:57 +0100 (BST)
To: dbi-users@perl.org

Hi Elliot, thanks for replying,

 --- Elliot.Fielstein@med.va.gov wrote:
> Henry,
>
> Have you tried any of these fixes?
>
> http://dev.mysql.com/doc/mysql/en/Old_client.html

will have a look, thanks.

>
> Are you sure you're running MySQL 4.1.5 because the
> 'upgrade client' error
> is typically caused by using a post 4.1.1 password
> scheme with a pre 4.1.1
> client.

Yes, it's definitely 4.1.5 running. I was wondering if
DBD-MySQL has caught up with the new password scheme!
Have now tried DBDs from ordinary repository and Randy
Kobes' site. (PPM3 appears to have older versions of
the DBD on it)

regards
Henry

>
> -----Original Message-----
> From: Henry McGuinness
> [mailto:henry_mcguinness@yahoo.co.uk]
> Sent: Monday, October 11, 2004 12:15 PM
> To: dbi-users@perl.org
> Subject: DBD::mysql
>
>
> Hi folks,
> This seems to be a DBI issue. I've just reinstalled
> most things so I'm running:
>
> Activestate Perl 5.8.4
> MySQL 4.1.5 ("gamma" but it should be ok surely?)
> DBI 1.43
> DBD::MySQL 2.9004
> running on Windows XP professional.
>
> Tried to do a simple select (works fine from MYSQL
> in
> command prompt - users have the right privileges).
> From a perl script or from Apache I get the
> following
> message:
>
> "Client does not support authentication protocol
> requested by server; consider upgrading MySQL
> client"
>
> Relevant code:
>
> use DBI;
> my $dbh =
>
DBI->connect("dbi:mysql:namesDB;host=localhost",".....",".....")
> or die "Can't make 1st database connect:
> $DBI::errstr\n";
>
> my $sth1 = $dbh->prepare("SELECT name, address FROM
> tbl_people WHERE (Txtname = ?)");
>
> $sth1->execute("Dave");
>
> while (@res=$sth1->fetchrow_array) {
> print "@res[0] : @res[3]: @res[4]\n\n" ;
> }
>
> $sth1->finish();
> $dbh->disconnect();
>
> (Have also tried without the "host=localhost" part
> of
> the connect statement)
>
> Anyone seen this/know what's going on?
> thanks
  

        
        
                
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com



Relevant Pages

  • RE: :mysql
    ... DBD_MySQL worked fine with MySQL 4.0.21. ... > 'upgrade client' error ... > From: Henry McGuinness ... > This seems to be a DBI issue. ...
    (perl.dbi.users)
  • Re: Some free utilities for Java, with Hebrew support.
    ... mostly separate from the one for replacing the client library. ... Then you're a MySQL reseller, by the sounds of it, rather than a MySQL ... I.e. they might use MySQL server and client, ... competing libraries, so I'd expect to see it happen sooner or later. ...
    (comp.lang.java.programmer)
  • Re: Confusion about database updates
    ... all connecting to the same database server. ... MySQL can easily handle many simultaneous clients. ... AlphaCluster all open multiple connections to a MySQL server running on ... Let the MySQL server do that when your client ...
    (comp.lang.java.databases)
  • Re: upgrading mysql client and server
    ... They were installed via ports not packages using custom make options ... I'd rather feed the mysql command a complete file and have it ... This isn't an amazingly difficult upgrade. ... *) Upgrade the MySQL client port and its dependencies first. ...
    (freebsd-questions)
  • Re: commands out of sync problem
    ... server and client application like this: ... Add a SQLconnection for the MySQL database ... and...tada 'commands out of sync: you can't run this command now'. ...
    (alt.comp.lang.borland-delphi)