Hello Monks, I wish you all a really awesome 2005.
My regards to everyone that replied to my last node, you guys are on my thanks list :)

I'm having problems connecting to MySQL through Perl for some data management of a small program I'm building. I'm a begginer at this, so I've been reading all the tutorials on databases in the tutorials section. Since I'm all newbie there are a lot of things I don't understand, but I have managed this far somehow. But now I'm dealing with two things I don't know much about, Perl and MySQL...and I'm stuck. Right now I'm trying to figure out how to connect to the MySQL server. For this, I was trying to use the example in stephen's Reading from a database tutorial. However, I keep getting an error I don't quite understand.
So, here's the deal: I'm running on Windows 2000 Pro, MySQL Server 4.1 with MySQL administrator 1.0 and ActivePerl 5.8.

My code goes like this for the connection part:
use strict; use DBI; my $dbh = DBI->connect('DBI:mysql:ligas','perlclient','todito') or die "Couldn't open database: $DBI::errstr; stopped";

Well, the database is ligas, and the user 'perlclient' with password 'todito' were created in Administrator, with the proper priviledges over database ligas, which has its respective tables.
The error I get from that is this:
DBI connect('ligas','perlclient',...) failed: Client does not support +authentication protocol requested by server; consider upgrading MySQL + client at pruebadbi.pl line8 Couldn't open database: Client foes not support authentication protoco +l requested by server; consider upgrading MySQL client; stopped at pr +uebadbi.pl line 8.

So, I'm really lost here, any pointers I can get about the nature of this error or how to fix it would be great. Thanks!!

In reply to Problems interacting with MySQL on Windows by Deib

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.