justsimple has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
How with perl I can access MySql database? ( make queries and so on)?
Do I need some modules??? If "yes", then could you tell which modules are the most popular, best....

Edited by BazB: added formatting and fixed title: s/PERl/Perl/.

Replies are listed 'Best First'.
Re: MySQL and Perl
by davido (Cardinal) on Jul 01, 2004 at 07:39 UTC

    You need the following:

    • DBI - The DataBase Interface module.
    • DBD::mysql - The Database Driver for MySQL.
    • Class::DBI (optional) - Database abstraction.

    And while we're at it, I'll recommend "Programming the Perl DBI" (An O'Reilly & Assoc. book). I found it quite helpful. If you need to learn SQL too, there are a million books out there on that subject.

    All three of those modules are available on CPAN, as well as via PPM for Windows users.


    Dave

Re: MySQL and Perl
by falflag (Initiate) on Jul 01, 2004 at 09:06 UTC
Book recommendation
by davebaker (Pilgrim) on Jul 01, 2004 at 15:43 UTC